… | |
… | |
46 | */ |
46 | */ |
47 | static void |
47 | static void |
48 | esrv_print_msg (client_socket * 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 | |
|
|
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 | |