summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-04-03 20:25:06 +0000
committerfrosch <frosch@openttd.org>2013-04-03 20:25:06 +0000
commit1e9049e0bdb558a716799b5986a9257e12e72b91 (patch)
treebd4b22c8a93d6b2c5278fad87bbfacaeab98b66a
parent87fae6ba578ae648d50df4927a13c5f896cec6d8 (diff)
downloadopenttd-1e9049e0bdb558a716799b5986a9257e12e72b91.tar.xz
(svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams.
-rw-r--r--src/tunnelbridge_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 1bcbf7163..1abb0c1a7 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -718,7 +718,8 @@ static inline CommandCost CheckAllowRemoveTunnelBridge(TileIndex tile)
if (HasBit(rts, ROADTYPE_TRAM)) tram_owner = GetRoadOwner(tile, ROADTYPE_TRAM);
/* We can remove unowned road and if the town allows it */
- if (road_owner == OWNER_TOWN && !(_settings_game.construction.extra_dynamite || _cheats.magic_bulldozer.value)) {
+ if (road_owner == OWNER_TOWN && _current_company != OWNER_TOWN && !(_settings_game.construction.extra_dynamite || _cheats.magic_bulldozer.value)) {
+ /* Town does not allow */
return CheckTileOwnership(tile);
}
if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company;