(svn r3487) -Fix: Price for demolishing a bridge was dependent on orientation and map size
--- a/tunnelbridge_cmd.c Mon Jan 30 14:50:55 2006 +0000
+++ b/tunnelbridge_cmd.c Mon Jan 30 16:48:24 2006 +0000
@@ -830,7 +830,11 @@
}
- 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)