# HG changeset patch # User terkhen # Date 2011-08-24 12:19:12 # Node ID c61bc6e4072370acef8d13621ba2fa23e72c3fc7 # Parent 8d1b53a88f0a54b68b52e292095da3c4e1c4f8e8 (svn r22821) -Fix [FS#4741]: Allow to demolish aqueducts built in the scenario editor. diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -673,9 +673,15 @@ static inline CommandCost CheckAllowRemo } 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(); } }