forked from mirror/OpenTTD
(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:
@@ -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]))
|
||||
|
Reference in New Issue
Block a user