summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-16 14:50:01 +0000
committertron <tron@openttd.org>2005-01-16 14:50:01 +0000
commit022b8cea37b1ae1a3a1745c5373d202a7f267a2d (patch)
tree187e8c5437b91c17d0f652b2f0d01e30fbd131b4 /disaster_cmd.c
parent8e404a26f65b8851b3dcf067fddf62f188005ee9 (diff)
downloadopenttd-022b8cea37b1ae1a3a1745c5373d202a7f267a2d.tar.xz
(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)
Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index d6d10bf0c..0c28ddc0a 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -20,7 +20,7 @@ static void DisasterClearSquare(uint tile)
if (!EnsureNoVehicle(tile))
return;
- type = _map_type_and_height[tile] >> 4;
+ type = TileType(tile);
if (type == MP_RAILWAY) {
if (IS_HUMAN_PLAYER(_map_owner[tile]))