diff options
author | tron <tron@openttd.org> | 2005-01-16 14:50:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-16 14:50:01 +0000 |
commit | 022b8cea37b1ae1a3a1745c5373d202a7f267a2d (patch) | |
tree | 187e8c5437b91c17d0f652b2f0d01e30fbd131b4 /disaster_cmd.c | |
parent | 8e404a26f65b8851b3dcf067fddf62f188005ee9 (diff) | |
download | openttd-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.c | 2 |
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])) |