… | |
… | |
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 (NewSocket * ns, int color, const char *str) |
48 | esrv_print_msg (client_socket * ns, int color, const char *str) |
49 | { |
49 | { |
50 | packet sl; |
50 | packet sl; |
51 | |
51 | |
52 | if (ns->status == Ns_Old) |
52 | if (ns->status == Ns_Old) |
53 | sl.printf ("%s\n", str); |
53 | sl.printf ("%s\n", str); |
… | |
… | |
65 | * subtype type and subtype of text message |
65 | * subtype type and subtype of text message |
66 | * intro Intro message to send with main message if client does not support the message type |
66 | * intro Intro message to send with main message if client does not support the message type |
67 | * message The main message |
67 | * message The main message |
68 | */ |
68 | */ |
69 | static void |
69 | static void |
70 | esrv_print_ext_msg (NewSocket * ns, int color, uint8 type, uint8 subtype, const char *message) |
70 | esrv_print_ext_msg (client_socket * ns, int color, uint8 type, uint8 subtype, const char *message) |
71 | { |
71 | { |
72 | packet sl; |
72 | packet sl; |
73 | |
73 | |
74 | sl.printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
74 | sl.printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
75 | ns->send_packet (sl); |
75 | ns->send_packet (sl); |