summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-12 11:15:25 +0000
committerrubidium <rubidium@openttd.org>2008-04-12 11:15:25 +0000
commitd02f46b9591d6ed79bba45749f6634c3c1d0e840 (patch)
tree26916b001f3cd09887d5a5069e2d78fcea289b0e
parent5c8444638eb466dedd74d62e2233ae827c46332c (diff)
downloadopenttd-d02f46b9591d6ed79bba45749f6634c3c1d0e840.tar.xz
(svn r12666) -Fix: the time table GUI did not show some data in the correct manner.
-rw-r--r--src/timetable_gui.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 63cc962e9..54223f1e3 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -139,22 +139,23 @@ static void DrawTimetableWindow(Window *w)
break;
case OT_GOTO_DEPOT:
+ SetDParam(4, STR_EMPTY);
if (v->type == VEH_AIRCRAFT) {
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
- SetDParam(1, STR_GO_TO_NEAREST_DEPOT);
- SetDParam(3, STR_ORDER_NEAREST_HANGAR);
+ SetDParam(0, STR_GO_TO_NEAREST_DEPOT);
+ SetDParam(2, STR_ORDER_NEAREST_HANGAR);
} else {
- SetDParam(1, STR_GO_TO_HANGAR);
- SetDParam(3, order->GetDestination());
+ SetDParam(0, STR_GO_TO_HANGAR);
+ SetDParam(2, order->GetDestination());
}
- SetDParam(4, STR_EMPTY);
+ SetDParam(3, STR_EMPTY);
} else {
if (order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) {
- SetDParam(1, STR_GO_TO_NEAREST_DEPOT);
- SetDParam(3, STR_ORDER_NEAREST_DEPOT);
+ SetDParam(0, STR_GO_TO_NEAREST_DEPOT);
+ SetDParam(2, STR_ORDER_NEAREST_DEPOT);
} else {
- SetDParam(1, STR_GO_TO_DEPOT);
- SetDParam(3, GetDepot(order->GetDestination())->town_index);
+ SetDParam(0, STR_GO_TO_DEPOT);
+ SetDParam(2, GetDepot(order->GetDestination())->town_index);
}
switch (v->type) {