Changeset - r18002:c61bc6e40723
[Not reviewed]
master
0 1 0
terkhen - 13 years ago 2011-08-24 12:19:12
terkhen@openttd.org
(svn r22821) -Fix [FS#4741]: Allow to demolish aqueducts built in the scenario editor.
1 file changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -670,15 +670,21 @@ static inline CommandCost CheckAllowRemo
 
			CommandCost ret = CheckOwnership(road_owner, tile);
 
			if (ret.Succeeded()) ret = CheckOwnership(tram_owner, tile);
 
			return ret;
 
		}
 

	
 
		case TRANSPORT_RAIL:
 
		case TRANSPORT_WATER:
 
			return CheckOwnership(GetTileOwner(tile));
 

	
 
		case TRANSPORT_WATER: {
 
			/* Always allow to remove aqueducts without owner. */
 
			Owner aqueduct_owner = GetTileOwner(tile);
 
			if (aqueduct_owner == OWNER_NONE) aqueduct_owner = _current_company;
 
			return CheckOwnership(aqueduct_owner);
 
		}
 

	
 
		default: NOT_REACHED();
 
	}
 
}
 

	
 
/**
 
 * Remove a tunnel from the game, update town rating, etc.
0 comments (0 inline, 0 general)