Changeset - r11328:69f316e17367
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-03-12 11:36:18
yexo@openttd.org
(svn r15683) -Fix (r15670): Removing town-owned bridges was no longer possible.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -594,10 +594,11 @@ static inline bool CheckAllowRemoveTunne
 
			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_NONE || (road_owner == OWNER_TOWN && (_settings_game.construction.extra_dynamite || _cheats.magic_bulldozer.value))) road_owner = _current_company;
 
			if (road_owner == OWNER_TOWN && !(_settings_game.construction.extra_dynamite || _cheats.magic_bulldozer.value)) return CheckTileOwnership(tile);
 
			if (road_owner == OWNER_NONE || road_owner == OWNER_TOWN) road_owner = _current_company;
 
			if (tram_owner == OWNER_NONE) tram_owner = _current_company;
 

	
 
			return (GetTileOwner(tile) == OWNER_NONE || CheckTileOwnership(tile)) && CheckOwnership(road_owner) && CheckOwnership(tram_owner);
 
			return CheckOwnership(road_owner) && CheckOwnership(tram_owner);
 
		}
 

	
 
		case TRANSPORT_RAIL:
0 comments (0 inline, 0 general)