mirror of https://github.com/OpenTTD/OpenTTD
(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...release/0.4.5
parent
6e2abeba5e
commit
7f14b69022
|
@ -445,11 +445,8 @@ void SetMapExtraBits(uint tile, byte bits)
|
||||||
|
|
||||||
uint GetMapExtraBits(uint tile)
|
uint GetMapExtraBits(uint tile)
|
||||||
{
|
{
|
||||||
if (TileX(tile) < MapSizeX() && TileY(tile) < MapSizeY() &&
|
assert(tile < MapSize());
|
||||||
TileX(tile) > 0 && TileY(tile) > 0)
|
return (_map_extra_bits[tile >> 2] >> (tile & 3) * 2) & 3;
|
||||||
return (_map_extra_bits[tile >> 2] >> (tile&3)*2)&3;
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define TILELOOP_BITS 4
|
#define TILELOOP_BITS 4
|
||||||
|
|
Loading…
Reference in New Issue