summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-13 15:42:36 +0000
committeralberth <alberth@openttd.org>2010-03-13 15:42:36 +0000
commit9e27194651152a3bbc1cb96cb327564767c56bca (patch)
tree5606d1c85a5c20c670b15023033c328efff0903c
parent6b6ff9c52b04ec47de1281284fcc99f6775f2302 (diff)
downloadopenttd-9e27194651152a3bbc1cb96cb327564767c56bca.tar.xz
(svn r19401) -Codechange: Use curly braces with multi-line if statements.
-rw-r--r--src/station_cmd.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index abce3f14a..57c533bcb 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3469,12 +3469,14 @@ CommandCost ClearTile_Station(TileIndex tile, DoCommandFlag flags)
case STATION_WAYPOINT: return RemoveRailWaypoint(tile, flags);
case STATION_AIRPORT: return RemoveAirport(tile, flags);
case STATION_TRUCK:
- if (IsDriveThroughStopTile(tile) && !CanRemoveRoadWithStop(tile, flags))
+ if (IsDriveThroughStopTile(tile) && !CanRemoveRoadWithStop(tile, flags)) {
return_cmd_error(STR_ERROR_MUST_DEMOLISH_TRUCK_STATION_FIRST);
+ }
return RemoveRoadStop(tile, flags);
case STATION_BUS:
- if (IsDriveThroughStopTile(tile) && !CanRemoveRoadWithStop(tile, flags))
+ if (IsDriveThroughStopTile(tile) && !CanRemoveRoadWithStop(tile, flags)) {
return_cmd_error(STR_ERROR_MUST_DEMOLISH_BUS_STATION_FIRST);
+ }
return RemoveRoadStop(tile, flags);
case STATION_BUOY: return RemoveBuoy(tile, flags);
case STATION_DOCK: return RemoveDock(tile, flags);