… | |
… | |
148 | { |
148 | { |
149 | client &socket = *pl->ns; |
149 | client &socket = *pl->ns; |
150 | object *ob = pl->ob; |
150 | object *ob = pl->ob; |
151 | char buf[MAX_BUF]; /* eauugggh */ |
151 | char buf[MAX_BUF]; /* eauugggh */ |
152 | |
152 | |
153 | if (socket.force_newmap && 0) |
153 | if (socket.force_newmap) |
154 | { |
154 | { |
155 | // force newmap is used for clients that do not redraw their map |
155 | // force newmap is used for clients that do not redraw their map |
156 | // after image uploads. |
156 | // after image uploads. |
157 | socket.current_map = ob->map; |
157 | socket.current_map = ob->map; |
158 | clear_map (pl); |
158 | clear_map (pl); |
… | |
… | |
978 | /** |
978 | /** |
979 | * Asks the client to query the user. This way, the client knows |
979 | * Asks the client to query the user. This way, the client knows |
980 | * it needs to send something back (vs just printing out a message) |
980 | * it needs to send something back (vs just printing out a message) |
981 | */ |
981 | */ |
982 | void |
982 | void |
983 | send_query (client *ns, uint8 flags, char *text) |
983 | send_query (client *ns, uint8 flags, const char *text) |
984 | { |
984 | { |
985 | ns->send_packet_printf ("query %d %s", flags, text ? text : ""); |
985 | ns->send_packet_printf ("query %d %s", flags, text ? text : ""); |
986 | } |
986 | } |
987 | |
987 | |
988 | #define AddIfInt64(Old,New,Type) if (Old != New) {\ |
988 | #define AddIfInt64(Old,New,Type) if (Old != New) {\ |