… | |
… | |
208 | else if (socket.current_x != ob->x || socket.current_y != ob->y) |
208 | else if (socket.current_x != ob->x || socket.current_y != ob->y) |
209 | { |
209 | { |
210 | int dx = ob->x - socket.current_x; |
210 | int dx = ob->x - socket.current_x; |
211 | int dy = ob->y - socket.current_y; |
211 | int dy = ob->y - socket.current_y; |
212 | |
212 | |
213 | if (socket.buggy_mapscroll && (abs (dx) > 8 || abs (dy) > 8)) |
|
|
214 | clear_map (pl); // current (<= 1.9.1) clients have unchecked buffer overflows |
|
|
215 | else |
|
|
216 | { |
|
|
217 | socket_map_scroll (&socket, ob->x - socket.current_x, ob->y - socket.current_y); |
213 | socket_map_scroll (&socket, ob->x - socket.current_x, ob->y - socket.current_y); |
218 | socket.floorbox_reset (); |
214 | socket.floorbox_reset (); |
219 | } |
|
|
220 | } |
215 | } |
221 | |
216 | |
222 | socket.current_x = ob->x; |
217 | socket.current_x = ob->x; |
223 | socket.current_y = ob->y; |
218 | socket.current_y = ob->y; |
224 | } |
219 | } |
… | |
… | |
1082 | |
1077 | |
1083 | unsigned char dummy; |
1078 | unsigned char dummy; |
1084 | unsigned char *last_ext = &dummy; |
1079 | unsigned char *last_ext = &dummy; |
1085 | |
1080 | |
1086 | /* Darkness changed */ |
1081 | /* Darkness changed */ |
1087 | if (lastcell.count != d && socket.darkness) |
1082 | if (lastcell.count != d) |
1088 | { |
1083 | { |
1089 | mask |= 0x8; |
1084 | mask |= 0x8; |
1090 | |
1085 | |
1091 | if (socket.extmap) |
1086 | if (socket.extmap) |
1092 | { |
1087 | { |