summaryrefslogtreecommitdiff
path: root/town_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-06 16:32:49 +0000
committertron <tron@openttd.org>2006-08-06 16:32:49 +0000
commitd8b8035f9f17d7eadf6d40845d2afa60a16e92bb (patch)
treef588dd076c3c98d0c2983a7f5c9e5f5dcbc4447b /town_cmd.c
parentfb251d18e06591423739a2cac659a9f4511370b8 (diff)
downloadopenttd-d8b8035f9f17d7eadf6d40845d2afa60a16e92bb.tar.xz
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
Diffstat (limited to 'town_cmd.c')
-rw-r--r--town_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c
index 720918419..f87f1917c 100644
--- a/town_cmd.c
+++ b/town_cmd.c
@@ -110,9 +110,9 @@ static void DrawTile_Town(TileInfo *ti)
}
}
-static uint GetSlopeZ_Town(const TileInfo* ti)
+static uint GetSlopeZ_Town(TileIndex tile, uint x, uint y)
{
- return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT);
+ return GetTileMaxZ(tile);
}
static Slope GetSlopeTileh_Town(TileIndex tile, Slope tileh)