ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/request.C
(Generate patch)

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.145 by root, Fri Dec 26 10:44:17 2008 UTC vs.
Revision 1.146 by root, Sat Dec 27 01:25:00 2008 UTC

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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines