summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-28 18:53:03 +0000
committerrubidium <rubidium@openttd.org>2006-08-28 18:53:03 +0000
commit27cee58ab823cbab0ab8905ce7b52143de7ca5e5 (patch)
tree9de9b15a15bde4d4e092c3abfde1fae7eb2d76f0 /tunnelbridge_cmd.c
parent8cc7aa9aa03d67ee59fcbf60dfb4d0cd407d3f3d (diff)
downloadopenttd-27cee58ab823cbab0ab8905ce7b52143de7ca5e5.tar.xz
(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index aebbfa5ac..6d8a42152 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -413,14 +413,14 @@ not_valid_below:;
SetSignalsOnBothDir(tile_start, AxisToTrack(direction));
YapfNotifyTrackLayoutChange(tile_start, AxisToTrack(direction));
- /* for human player that builds the bridge he gets a selection to choose from bridges (DC_QUERY_COST)
- It's unnecessary to execute this command every time for every bridge. So it is done only
- and cost is computed in "bridge_gui.c". For AI, Towns this has to be of course calculated
- */
+ /* for human player that builds the bridge he gets a selection to choose from bridges (DC_QUERY_COST)
+ * It's unnecessary to execute this command every time for every bridge. So it is done only
+ * and cost is computed in "bridge_gui.c". For AI, Towns this has to be of course calculated
+ */
if (!(flags & DC_QUERY_COST)) {
const Bridge *b = &_bridge[bridge_type];
- bridge_len += 2; // begin and end tiles/ramps
+ bridge_len += 2; // begin and end tiles/ramps
if (_current_player < MAX_PLAYERS && !_is_old_ai_player)
bridge_len = CalcBridgeLenCostFactor(bridge_len);
@@ -1315,7 +1315,7 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, PlayerID old_player, Pl
if (new_player != OWNER_SPECTATOR) {
SetTileOwner(tile, new_player);
- } else {
+ } else {
if (IsBridge(tile) && IsBridgeMiddle(tile) && IsTransportUnderBridge(tile)) {
// the stuff BELOW the middle part is owned by the deleted player.
if (GetTransportTypeUnderBridge(tile) == TRANSPORT_RAIL) {