(svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost.

This commit is contained in:
alberth
2010-03-13 15:53:44 +00:00
parent d503642072
commit 59caa8ea94
3 changed files with 19 additions and 25 deletions

View File

@@ -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)