From ebcf2ee3b143286f184144da1970327c33fc3e1c Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 7 May 2006 07:55:05 +0000 Subject: (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 --- tile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tile.h') 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) { -- cgit v1.2.3-54-g00ecf