Changeset - r14801:c3201d8cf274
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2010-03-13 15:42:36
alberth@openttd.org
(svn r19401) -Codechange: Use curly braces with multi-line if statements.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -3469,12 +3469,14 @@ CommandCost ClearTile_Station(TileIndex 
 
		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);
0 comments (0 inline, 0 general)