… | |
… | |
1358 | adjacent_map (const maptile *map1, const maptile *map2, int *dx, int *dy) |
1358 | adjacent_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; |