From bbdc8fdba7d30099d80227659919930f3dedf84b Mon Sep 17 00:00:00 2001 From: terkhen Date: Wed, 24 Aug 2011 12:19:12 +0000 Subject: (svn r22821) -Fix [FS#4741]: Allow to demolish aqueducts built in the scenario editor. --- src/tunnelbridge_cmd.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index ec98fc1ce..3d8ee8937 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -673,9 +673,15 @@ static inline CommandCost CheckAllowRemoveTunnelBridge(TileIndex tile) } 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(); } } -- cgit v1.2.3-70-g09d2