… | |
… | |
43 | * much the same thing as the draw_info above, but takes a color |
43 | * much the same thing as the draw_info above, but takes a color |
44 | * parameter. the esrv_drawinfo functions should probably be |
44 | * parameter. the esrv_drawinfo functions should probably be |
45 | * replaced with this, just using black as the color. |
45 | * replaced with this, just using black as the color. |
46 | */ |
46 | */ |
47 | static void |
47 | static void |
48 | esrv_print_msg (client_socket * ns, int color, const char *str) |
48 | esrv_print_msg (client * ns, int color, const char *str) |
49 | { |
49 | { |
50 | packet sl; |
50 | packet sl; |
51 | sl.printf ("drawinfo %d %s", color, str); |
51 | sl.printf ("drawinfo %d %s", color, str); |
52 | ns->send_packet (sl); |
52 | ns->send_packet (sl); |
53 | } |
53 | } |
… | |
… | |
60 | * subtype type and subtype of text message |
60 | * subtype type and subtype of text message |
61 | * intro Intro message to send with main message if client does not support the message type |
61 | * intro Intro message to send with main message if client does not support the message type |
62 | * message The main message |
62 | * message The main message |
63 | */ |
63 | */ |
64 | static void |
64 | static void |
65 | esrv_print_ext_msg (client_socket * ns, int color, uint8 type, uint8 subtype, const char *message) |
65 | esrv_print_ext_msg (client * ns, int color, uint8 type, uint8 subtype, const char *message) |
66 | { |
66 | { |
67 | packet sl; |
67 | packet sl; |
68 | |
68 | |
69 | sl.printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
69 | sl.printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
70 | ns->send_packet (sl); |
70 | ns->send_packet (sl); |
… | |
… | |
629 | |
629 | |
630 | for (int y = ymin; y <= ymax; y++) |
630 | for (int y = ymin; y <= ymax; y++) |
631 | for (int x = xmin; x <= xmax; x++) |
631 | for (int x = xmin; x <= xmax; x++) |
632 | sl << uint8 (map_mark[x + MAGIC_MAP_SIZE * y] & ~FACE_FLOOR); |
632 | sl << uint8 (map_mark[x + MAGIC_MAP_SIZE * y] & ~FACE_FLOOR); |
633 | |
633 | |
634 | Send_With_Handling (pl->contr->socket, &sl); |
634 | pl->contr->socket->send_packet (sl); |
635 | |
635 | |
636 | free (map_mark); |
636 | free (map_mark); |
637 | } |
637 | } |
638 | |
638 | |
639 | |
639 | |