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.196 by root, Sun Nov 18 00:37:11 2018 UTC vs.
Revision 1.197 by root, Sat Dec 1 20:22:13 2018 UTC

352 352
353 // due to historical glitches, the mapinfo index and tile index differs 353 // due to historical glitches, the mapinfo index and tile index differs
354 static unsigned char dirmap [] = { TILE_NORTH, TILE_EAST, TILE_SOUTH, TILE_WEST, TILE_UP, TILE_DOWN }; 354 static unsigned char dirmap [] = { TILE_NORTH, TILE_EAST, TILE_SOUTH, TILE_WEST, TILE_UP, TILE_DOWN };
355 355
356 // maybe we should only allow the four flat directions 356 // maybe we should only allow the four flat directions
357 if (IN_RANGE_EXC (dir, 0, array_length (dirmap))) 357 if (IN_RANGE_EXC (dir, 0, ecb_array_length (dirmap)))
358 { 358 {
359 dir = dirmap [dir]; 359 dir = dirmap [dir];
360 360
361 if (!map->tile_path [dir]) 361 if (!map->tile_path [dir])
362 map = 0; 362 map = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines