summaryrefslogtreecommitdiff
path: root/pathfind.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-05 18:59:02 +0000
committertron <tron@openttd.org>2005-01-05 18:59:02 +0000
commitfa1564a1a485acc0d8c707c75d1e659fa4ec8fe1 (patch)
treedee85b6cd2b91ec3b8c4e2e822e5d449ee5d8f5a /pathfind.c
parent8a0ba57ac64c5d72c5d1f743241ac1eec5d95bf6 (diff)
downloadopenttd-fa1564a1a485acc0d8c707c75d1e659fa4ec8fe1.tar.xz
(svn r1391) Make an assert map size agnostic
Diffstat (limited to 'pathfind.c')
-rw-r--r--pathfind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathfind.c b/pathfind.c
index 730c26aa4..0880585e1 100644
--- a/pathfind.c
+++ b/pathfind.c
@@ -158,7 +158,7 @@ static void TPFMode2(TrackPathFinder *tpf, uint tile, int direction)
if (bits == 0)
return;
- assert(GET_TILE_X(tile) != 255 && GET_TILE_Y(tile) != 255);
+ assert(GET_TILE_X(tile) != MapMaxX() && GET_TILE_Y(tile) != MapMaxY());
if ( (bits & (bits - 1)) == 0 ) {
/* only one direction */