--- deliantra/server/socket/info.C 2007/05/28 21:22:26 1.43 +++ deliantra/server/socket/info.C 2007/06/24 04:09:29 1.45 @@ -38,6 +38,8 @@ #include #include +#include + /** * Draws a normal message on the client. It is pretty * much the same thing as the draw_info above, but takes a color @@ -47,7 +49,7 @@ static void esrv_print_msg (client *ns, int color, const char *str) { - ns->send_packet_printf ("drawinfo %d %s", color, str); + ns->send_msg (color, "info", str); } /** @@ -62,7 +64,7 @@ static void esrv_print_ext_msg (client *ns, int color, uint8 type, uint8 subtype, const char *message) { - ns->send_packet_printf ("drawextinfo %d %hhu %hhu %s", color, type, subtype, message); + ns->send_packet_printf ("drawextinfo %d %u %u %s", color, type, subtype, message); } /** @@ -85,7 +87,7 @@ return; if (pl->type == PLAYER) - esrv_print_msg (pl->contr->ns, colr, (char *) tmp); + esrv_print_msg (pl->contr->ns, colr, (char *)tmp); } bool @@ -271,7 +273,6 @@ /** * Writes to everyone on the map except op1 and op2 */ - void new_info_map_except2 (int color, maptile * map, object *op1, object *op2, const char *str) { @@ -283,7 +284,6 @@ /** * Writes to everyone on the specified map */ - void new_info_map (int color, maptile * map, const char *str) { @@ -293,16 +293,6 @@ } /** - * This does nothing now. However, in theory, we should probably send - * something to the client and let the client figure out how it might want - * to handle this - */ -void -clear_win_info (object *op) -{ -} - -/** * Sets player title. */ void