From fa1564a1a485acc0d8c707c75d1e659fa4ec8fe1 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 5 Jan 2005 18:59:02 +0000 Subject: [PATCH] (svn r1391) Make an assert map size agnostic --- pathfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathfind.c b/pathfind.c index 730c26aa4e..0880585e14 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 */