1
0
Fork 0

(svn r1391) Make an assert map size agnostic

release/0.4.5
tron 2005-01-05 18:59:02 +00:00
parent 2cdc210193
commit 5583fd89b3
1 changed files with 1 additions and 1 deletions

View File

@ -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 */