mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 13:09:15 +00:00
(svn r17168) -Codechange: apply coding style to if and while statements
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user