(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.

This commit is contained in:
rubidium
2009-07-22 22:44:56 +00:00
parent 2962d8f0fc
commit 9980af2898
65 changed files with 6394 additions and 6398 deletions

View File

@@ -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) {