Changeset - r20164:ffdfd45e472c
[Not reviewed]
master
0 1 0
frosch - 11 years ago 2013-04-03 20:25:06
frosch@openttd.org
(svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -718,7 +718,8 @@ static inline CommandCost CheckAllowRemo
 
			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;
0 comments (0 inline, 0 general)