Mercurial > hg > openttd
changeset 8625:0edb93b9e261 draft
(svn r12208) -Codechange: Alignment of params makes the code easier to read.
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 21 Feb 2008 16:05:33 +0000 |
parents | 707304c7c1fa |
children | e6ad3a9cdfcb |
files | src/tunnelbridge_cmd.cpp |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -257,7 +257,7 @@ tileh_end = GetTileSlope(tile_end, &z_end); CommandCost terraform_cost_north = CheckBridgeSlopeNorth(direction, &tileh_start, &z_start); - CommandCost terraform_cost_south = CheckBridgeSlopeSouth(direction, &tileh_end, &z_end); + CommandCost terraform_cost_south = CheckBridgeSlopeSouth(direction, &tileh_end, &z_end); if (z_start != z_end) return_cmd_error(STR_BRIDGEHEADS_NOT_SAME_HEIGHT); @@ -351,12 +351,12 @@ switch (transport_type) { case TRANSPORT_RAIL: - MakeRailBridgeRamp(tile_start, owner, bridge_type, dir, railtype); + MakeRailBridgeRamp(tile_start, owner, bridge_type, dir, railtype); MakeRailBridgeRamp(tile_end, owner, bridge_type, ReverseDiagDir(dir), railtype); break; case TRANSPORT_ROAD: - MakeRoadBridgeRamp(tile_start, owner, bridge_type, dir, roadtypes); + MakeRoadBridgeRamp(tile_start, owner, bridge_type, dir, roadtypes); MakeRoadBridgeRamp(tile_end, owner, bridge_type, ReverseDiagDir(dir), roadtypes); break; @@ -612,11 +612,11 @@ DoClearSquare(endtile); /* cannot use INVALID_DIAGDIR for signal update because the tunnel doesn't exist anymore */ - AddSideToSignalBuffer(tile, ReverseDiagDir(dir), owner); - AddSideToSignalBuffer(endtile, dir, owner); + AddSideToSignalBuffer(tile, ReverseDiagDir(dir), owner); + AddSideToSignalBuffer(endtile, dir, owner); Track track = AxisToTrack(DiagDirToAxis(dir)); - YapfNotifyTrackLayoutChange(tile, track); + YapfNotifyTrackLayoutChange(tile, track); YapfNotifyTrackLayoutChange(endtile, track); } else { DoClearSquare(tile); @@ -680,11 +680,11 @@ if (rail) { /* cannot use INVALID_DIAGDIR for signal update because the bridge doesn't exist anymore */ - AddSideToSignalBuffer(tile, ReverseDiagDir(direction), owner); - AddSideToSignalBuffer(endtile, direction, owner); + AddSideToSignalBuffer(tile, ReverseDiagDir(direction), owner); + AddSideToSignalBuffer(endtile, direction, owner); Track track = AxisToTrack(DiagDirToAxis(direction)); - YapfNotifyTrackLayoutChange(tile, track); + YapfNotifyTrackLayoutChange(tile, track); YapfNotifyTrackLayoutChange(endtile, track); } }