mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-21 19:37:23 +01:00
(svn r3487) -Fix: Price for demolishing a bridge was dependent on orientation and map size
This commit is contained in:
parent
876813cd9d
commit
2f668b8669
@ -830,7 +830,11 @@ clear_it:;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((((endtile - tile) >> (direction?8:0))&0xFF)+1) * _price.clear_bridge;
|
if (direction) {
|
||||||
|
return (TileY(endtile) - TileY(tile) + 1) * _price.clear_bridge;
|
||||||
|
} else {
|
||||||
|
return (TileX(endtile) - TileX(tile) + 1) * _price.clear_bridge;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32 ClearTile_TunnelBridge(TileIndex tile, byte flags)
|
static int32 ClearTile_TunnelBridge(TileIndex tile, byte flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user