Mercurial > hg > openttd
changeset 20188:7d2043dfec98 draft
(svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 03 Apr 2013 20:25:06 +0000 |
parents | b50ffa0525f2 |
children | ff0c193f1db0 |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -718,7 +718,8 @@ 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;