(svn r12303) -Codechange: move IsValidTile() in a more suitable place and make it static inline

This commit is contained in:
glx
2008-02-28 00:10:08 +00:00
parent 459fd42e1d
commit 35195bb2bc
3 changed files with 19 additions and 17 deletions

View File

@@ -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());
}