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.17 by root, Thu Dec 14 04:30:33 2006 UTC vs.
Revision 1.19 by root, Thu Dec 14 20:39:54 2006 UTC

46 */ 46 */
47static void 47static void
48esrv_print_msg (client_socket * ns, int color, const char *str) 48esrv_print_msg (client_socket * ns, int color, const char *str)
49{ 49{
50 packet sl; 50 packet sl;
51
52 if (ns->status == Ns_Old)
53 sl.printf ("%s\n", str);
54 else
55 sl.printf ("drawinfo %d %s", color, str); 51 sl.printf ("drawinfo %d %s", color, str);
56
57 ns->send_packet (sl); 52 ns->send_packet (sl);
58} 53}
59 54
60/** 55/**
61 * Draws an extended message on the client. 56 * Draws an extended message on the client.
634 629
635 for (int y = ymin; y <= ymax; y++) 630 for (int y = ymin; y <= ymax; y++)
636 for (int x = xmin; x <= xmax; x++) 631 for (int x = xmin; x <= xmax; x++)
637 sl << uint8 (map_mark[x + MAGIC_MAP_SIZE * y] & ~FACE_FLOOR); 632 sl << uint8 (map_mark[x + MAGIC_MAP_SIZE * y] & ~FACE_FLOOR);
638 633
639 Send_With_Handling (pl->contr->socket, &sl); 634 pl->contr->socket->send_packet (sl);
640 635
641 free (map_mark); 636 free (map_mark);
642} 637}
643 638
644 639

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines