changeset 905:f2ddd07622f1 draft

(svn r1391) Make an assert map size agnostic
author tron <tron@openttd.org>
date Wed, 05 Jan 2005 18:59:02 +0000
parents ce43dbd9a768
children 4ceb1c5aa4a5
files pathfind.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pathfind.c
+++ b/pathfind.c
@@ -158,7 +158,7 @@
 	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 */