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

Comparing deliantra/server/common/map.C (file contents):
Revision 1.119 by root, Fri Aug 24 00:53:54 2007 UTC vs.
Revision 1.120 by root, Fri Aug 24 00:54:57 2007 UTC

1358adjacent_map (const maptile *map1, const maptile *map2, int *dx, int *dy) 1358adjacent_map (const maptile *map1, const maptile *map2, int *dx, int *dy)
1359{ 1359{
1360 if (!map1 || !map2) 1360 if (!map1 || !map2)
1361 return 0; 1361 return 0;
1362 1362
1363 //TODO: this doesn't actually check corretcly when intermediate maps are not loaded 1363 //TODO: this doesn't actually check correctly when intermediate maps are not loaded
1364 //fix: compare paths instead (this is likely faster, too!) 1364 //fix: compare paths instead (this is likely faster, too!)
1365 if (map1 == map2) 1365 if (map1 == map2)
1366 { 1366 {
1367 *dx = 0; 1367 *dx = 0;
1368 *dy = 0; 1368 *dy = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines