forked from mirror/OpenTTD
(svn r12303) -Codechange: move IsValidTile() in a more suitable place and make it static inline
This commit is contained in:
@@ -919,8 +919,3 @@ TileIndex AdjustTileCoordRandomly(TileIndex a, byte rng)
|
||||
TileY(a) + (GB(r, 8, 8) * rn * 2 >> 8) - rn
|
||||
));
|
||||
}
|
||||
|
||||
bool IsValidTile(TileIndex tile)
|
||||
{
|
||||
return (tile < MapSizeX() * MapMaxY() && TileX(tile) != MapMaxX());
|
||||
}
|
||||
|
Reference in New Issue
Block a user