(svn r1641) Remove a boundary check added in r1332 to work around a bug - the real cause has been eleminated in r1413.
authortron
Mon, 24 Jan 2005 18:57:16 +0000
changeset 1140 82396799e4eb
parent 1139 1649055e5e89
child 1141 d1ca5ddd5fc1
(svn r1641) Remove a boundary check added in r1332 to work around a bug - the real cause has been eleminated in r1413.
Leave an assert() just to be sure...
landscape.c
--- a/landscape.c	Mon Jan 24 18:21:23 2005 +0000
+++ b/landscape.c	Mon Jan 24 18:57:16 2005 +0000
@@ -445,11 +445,8 @@
 
 uint GetMapExtraBits(uint tile)
 {
-	if (TileX(tile) < MapSizeX() && TileY(tile) < MapSizeY() &&
-			TileX(tile) > 0 && TileY(tile) > 0)
-		return (_map_extra_bits[tile >> 2] >> (tile&3)*2)&3;
-	else
-		return 0;
+	assert(tile < MapSize());
+	return (_map_extra_bits[tile >> 2] >> (tile & 3) * 2) & 3;
 }
 
 #define TILELOOP_BITS 4