… | |
… | |
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); |
159 | } |
159 | } |
160 | else if (socket.current_map != ob->map) |
160 | else if (socket.current_map != ob->map) |
161 | { |
161 | { |
162 | clear_map (pl); |
162 | clear_map (pl); |
|
|
163 | socket.current_map = ob->map; |
163 | |
164 | |
164 | if (socket.mapinfocmd) |
165 | if (socket.mapinfocmd) |
165 | { |
166 | { |
166 | if (ob->map && ob->map->path[0]) |
167 | if (ob->map && ob->map->path[0]) |
167 | { |
168 | { |