ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/info.C
(Generate patch)

Comparing deliantra/server/socket/info.C (file contents):
Revision 1.20 by root, Fri Dec 15 19:59:20 2006 UTC vs.
Revision 1.21 by root, Sat Dec 16 03:08:26 2006 UTC

45 * replaced with this, just using black as the color. 45 * replaced with this, just using black as the color.
46 */ 46 */
47static void 47static void
48esrv_print_msg (client * ns, int color, const char *str) 48esrv_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 */
64static void 62static void
65esrv_print_ext_msg (client * ns, int color, uint8 type, uint8 subtype, const char *message) 63esrv_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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines