(svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams.
This commit is contained in:
@@ -718,7 +718,8 @@ static inline CommandCost CheckAllowRemoveTunnelBridge(TileIndex tile)
|
|||||||
if (HasBit(rts, ROADTYPE_TRAM)) tram_owner = GetRoadOwner(tile, ROADTYPE_TRAM);
|
if (HasBit(rts, ROADTYPE_TRAM)) tram_owner = GetRoadOwner(tile, ROADTYPE_TRAM);
|
||||||
|
|
||||||
/* We can remove unowned road and if the town allows it */
|
/* 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);
|
return CheckTileOwnership(tile);
|
||||||
}
|
}
|
||||||
if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company;
|
if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company;
|
||||||
|
Reference in New Issue
Block a user