(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)

Replace some direct references to _map_type_and_height with TileHeight()/IsTileType()
This commit is contained in:
tron
2005-01-16 14:50:01 +00:00
parent 8e404a26f6
commit 022b8cea37
6 changed files with 26 additions and 22 deletions

View File

@@ -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]))