From 022b8cea37b1ae1a3a1745c5373d202a7f267a2d Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 16 Jan 2005 14:50:01 +0000 Subject: (svn r1545) Add TileHeight() which returns the height (not multiplied by 8) Replace some direct references to _map_type_and_height with TileHeight()/IsTileType() --- disaster_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disaster_cmd.c') 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])) -- cgit v1.2.3-54-g00ecf