summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-01 18:53:30 +0000
commite356cb94050797cccbf05b3a411105528da8ee90 (patch)
tree3d98354dc5983a03e685f116b1b5c5b73607de0f /src/order_gui.cpp
parent605f6d0ed3c81a77d533f3db40ed50350d57536c (diff)
downloadopenttd-e356cb94050797cccbf05b3a411105528da8ee90.tar.xz
(svn r20281) -Codechange: unify case scope closure + break coding style
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 5edcaa108..0a6965b8a 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -230,7 +230,8 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
SetDParam(5, order->GetStopLocation() + STR_ORDER_STOP_LOCATION_NEAR_END);
}
}
- } break;
+ break;
+ }
case OT_GOTO_DEPOT:
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
@@ -812,7 +813,8 @@ public:
/* Moving selected order */
this->selected_order = to;
- } break;
+ break;
+ }
}
this->vscroll.SetCount(this->vehicle->GetNumOrders() + 1);
@@ -1069,7 +1071,8 @@ public:
}
this->UpdateButtonState();
- } break;
+ break;
+ }
case ORDER_WIDGET_SKIP:
this->OrderClick_Skip(0);
@@ -1136,7 +1139,8 @@ public:
case ORDER_WIDGET_COND_COMPARATOR: {
const Order *o = this->vehicle->GetOrder(this->OrderGetSel());
ShowDropDownMenu(this, _order_conditional_condition, o->GetConditionComparator(), ORDER_WIDGET_COND_COMPARATOR, 0, (o->GetConditionVariable() == OCV_REQUIRES_SERVICE) ? 0x3F : 0xC0);
- } break;
+ break;
+ }
case ORDER_WIDGET_COND_VALUE: {
const Order *order = this->vehicle->GetOrder(this->OrderGetSel());
@@ -1144,7 +1148,8 @@ public:
if (order->GetConditionVariable() == OCV_MAX_SPEED) value = ConvertSpeedToDisplaySpeed(value);
SetDParam(0, value);
ShowQueryString(STR_JUST_INT, STR_ORDER_CONDITIONAL_VALUE_CAPT, 5, 100, this, CS_NUMERAL, QSF_NONE);
- } break;
+ break;
+ }
case ORDER_WIDGET_SHARED_ORDER_LIST:
ShowVehicleListWindow(this->vehicle);
@@ -1224,7 +1229,8 @@ public:
this->selected_order = -1;
this->UpdateButtonState();
}
- } break;
+ break;
+ }
case ORDER_WIDGET_DELETE:
this->OrderClick_Delete(0);