summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-05-07 07:55:05 +0000
committertron <tron@openttd.org>2006-05-07 07:55:05 +0000
commit5622ad4b5efdba60db4bcfaf03ba358c569064f6 (patch)
treef5113d4060c886372d1bca9edc9098d07a6dc3e0 /tile.h
parent4f092c8de8e30ce4d29165a7d46dd2203c887722 (diff)
downloadopenttd-5622ad4b5efdba60db4bcfaf03ba358c569064f6.tar.xz
(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tile.h b/tile.h
index cb51208e3..ebb1bb89a 100644
--- a/tile.h
+++ b/tile.h
@@ -30,6 +30,7 @@ typedef enum TropicZones {
Slope GetTileh(uint n, uint w, uint e, uint s, uint *h);
Slope GetTileSlope(TileIndex tile, uint *h);
uint GetTileZ(TileIndex tile);
+uint GetTileMaxZ(TileIndex tile);
static inline bool CorrectZ(Slope tileh)
{