diff options
author | alberth <alberth@openttd.org> | 2010-03-13 15:53:44 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-13 15:53:44 +0000 |
commit | 7e1a91db21e554b1518944b5523ce997b96eb622 (patch) | |
tree | adea3561ea55aa1f5da06c6a3e47b6cf46cc9343 /src/station_cmd.cpp | |
parent | 9e27194651152a3bbc1cb96cb327564767c56bca (diff) | |
download | openttd-7e1a91db21e554b1518944b5523ce997b96eb622.tar.xz |
(svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 57c533bcb..3747ae5e1 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -3443,7 +3443,7 @@ static bool CanRemoveRoadWithStop(TileIndex tile, DoCommandFlag flags) if ((road_owner != OWNER_TOWN && !CheckOwnership(road_owner)) || !CheckOwnership(tram_owner)) return false; - return road_owner != OWNER_TOWN || CheckAllowRemoveRoad(tile, GetAnyRoadBits(tile, ROADTYPE_ROAD), OWNER_TOWN, ROADTYPE_ROAD, flags); + return road_owner != OWNER_TOWN || CheckAllowRemoveRoad(tile, GetAnyRoadBits(tile, ROADTYPE_ROAD), OWNER_TOWN, ROADTYPE_ROAD, flags).Succeeded(); } CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags) |