… | |
… | |
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) |
153 | if (socket.current_map != ob->map || socket.force_newmap) |
154 | { |
|
|
155 | // force newmap is used for clients that do not redraw their map |
|
|
156 | // after image uploads. |
|
|
157 | socket.current_map = ob->map; |
|
|
158 | clear_map (pl); |
|
|
159 | } |
|
|
160 | else if (socket.current_map != ob->map) |
|
|
161 | { |
154 | { |
162 | clear_map (pl); |
155 | clear_map (pl); |
163 | socket.current_map = ob->map; |
156 | socket.current_map = ob->map; |
164 | |
157 | |
165 | if (socket.mapinfocmd) |
158 | if (socket.mapinfocmd) |
… | |
… | |
505 | */ |
498 | */ |
506 | void |
499 | void |
507 | AskSmooth (char *buf, int len, client *ns) |
500 | AskSmooth (char *buf, int len, client *ns) |
508 | { |
501 | { |
509 | ns->send_face (atoi (buf)); |
502 | ns->send_face (atoi (buf)); |
|
|
503 | ns->flush_fx (); |
510 | } |
504 | } |
511 | |
505 | |
512 | /** |
506 | /** |
513 | * This handles the general commands from the client (ie, north, fire, cast, |
507 | * This handles the general commands from the client (ie, north, fire, cast, |
514 | * etc.) |
508 | * etc.) |
… | |
… | |
1327 | } |
1321 | } |
1328 | } /* else this is a viewable space */ |
1322 | } /* else this is a viewable space */ |
1329 | } /* for x loop */ |
1323 | } /* for x loop */ |
1330 | } /* for y loop */ |
1324 | } /* for y loop */ |
1331 | |
1325 | |
|
|
1326 | socket.flush_fx (); |
|
|
1327 | |
1332 | /* Verify that we in fact do need to send this */ |
1328 | /* Verify that we in fact do need to send this */ |
1333 | if (socket.ext_mapinfos) |
1329 | if (socket.ext_mapinfos) |
1334 | { |
1330 | { |
1335 | if (!(sl.length () > startlen || socket.sent_scroll)) |
1331 | if (!(sl.length () > startlen || socket.sent_scroll)) |
1336 | { |
1332 | { |