diff options
author | smatz <smatz@openttd.org> | 2009-08-14 17:11:59 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-14 17:11:59 +0000 |
commit | c5533ae4708d85dcdff8e53515e17ab593f7f361 (patch) | |
tree | 8fd6af1f0c5acb1263bb85643a19f5516a6822a5 /src/order_cmd.cpp | |
parent | 3108ff7ac667edf872ee96c6331f0f45e5253d98 (diff) | |
download | openttd-c5533ae4708d85dcdff8e53515e17ab593f7f361.tar.xz |
(svn r17168) -Codechange: apply coding style to if and while statements
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index e97469371..c7fff9e86 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -852,9 +852,9 @@ CommandCost CmdMoveOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 VehicleOrderID order_id = order->GetConditionSkipToOrder(); if (order_id == moving_order) { order_id = target_order; - } else if(order_id > moving_order && order_id <= target_order) { + } else if (order_id > moving_order && order_id <= target_order) { order_id--; - } else if(order_id < moving_order && order_id >= target_order) { + } else if (order_id < moving_order && order_id >= target_order) { order_id++; } order->SetConditionSkipToOrder(order_id); |