mirror of https://github.com/OpenTTD/OpenTTD
(svn r22821) -Fix [FS#4741]: Allow to demolish aqueducts built in the scenario editor.
parent
70179db81e
commit
bbdc8fdba7
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue