summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-22 22:44:56 +0000
committerrubidium <rubidium@openttd.org>2009-07-22 22:44:56 +0000
commit9980af289835021ef605f9f452d1f289145c6314 (patch)
tree9323d8321200ad88360bed0848859f31ba8143b4 /src/order_gui.cpp
parent2962d8f0fc12699e2e952128c8f85b297c79e6b8 (diff)
downloadopenttd-9980af289835021ef605f9f452d1f289145c6314.tar.xz
(svn r16921) -Codechange: make it more clear what strings are related to road vehicles; only ROAD isn't always enough. Also unify the way of writing it.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 80faadf02..b00377049 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -229,12 +229,7 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
SetDParam(3, Depot::Get(order->GetDestination())->town_index);
}
- switch (v->type) {
- case VEH_TRAIN: SetDParam(4, STR_ORDER_TRAIN_DEPOT); break;
- case VEH_ROAD: SetDParam(4, STR_ORDER_ROAD_DEPOT); break;
- case VEH_SHIP: SetDParam(4, STR_ORDER_SHIP_DEPOT); break;
- default: NOT_REACHED();
- }
+ SetDParam(4, STR_ORDER_TRAIN_DEPOT + v->type);
}
if (order->GetDepotOrderType() & ODTFB_SERVICE) {