summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-02-28 00:10:08 +0000
committerglx <glx@openttd.org>2008-02-28 00:10:08 +0000
commite9bddd2b4737b91d28ba41a67188bc278363156f (patch)
tree8f346ea0968b32d22e1d885edda375a17c2dfe93 /src/landscape.cpp
parent19b0f752265c4525784ff89d506fd228f614e0b7 (diff)
downloadopenttd-e9bddd2b4737b91d28ba41a67188bc278363156f.tar.xz
(svn r12303) -Codechange: move IsValidTile() in a more suitable place and make it static inline
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 6bad6e8a4..957f7b185 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -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());
-}