… | |
… | |
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 * ns, int color, const char *str) |
48 | esrv_print_msg (client * ns, int color, const char *str) |
49 | { |
49 | { |
50 | packet sl; |
|
|
51 | sl.printf ("drawinfo %d %s", color, str); |
50 | ns->send_packet_printf ("drawinfo %d %s", color, str); |
52 | ns->send_packet (sl); |
|
|
53 | } |
51 | } |
54 | |
52 | |
55 | /** |
53 | /** |
56 | * Draws an extended message on the client. |
54 | * Draws an extended message on the client. |
57 | * ns the socket to send message to |
55 | * ns the socket to send message to |
… | |
… | |
62 | * message The main message |
60 | * message The main message |
63 | */ |
61 | */ |
64 | static void |
62 | static void |
65 | esrv_print_ext_msg (client * ns, int color, uint8 type, uint8 subtype, const char *message) |
63 | esrv_print_ext_msg (client * ns, int color, uint8 type, uint8 subtype, const char *message) |
66 | { |
64 | { |
67 | packet sl; |
|
|
68 | |
|
|
69 | sl.printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
65 | ns->send_packet_printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); |
70 | ns->send_packet (sl); |
|
|
71 | } |
66 | } |
72 | |
67 | |
73 | /** |
68 | /** |
74 | * Frontend for esrv_print_msg |
69 | * Frontend for esrv_print_msg |
75 | * \param colr message color |
70 | * \param colr message color |