summaryrefslogtreecommitdiff
path: root/src/timetable_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-09 22:01:23 +0000
committerrubidium <rubidium@openttd.org>2008-04-09 22:01:23 +0000
commitc9e9e6005bed8e6143fdc571cfebdc993d334dbd (patch)
treea618ec500e29326d18b5b8410e43ffb4992c7603 /src/timetable_gui.cpp
parente075ade119bbab7f87eb0ca897e3a9ea0f55817b (diff)
downloadopenttd-c9e9e6005bed8e6143fdc571cfebdc993d334dbd.tar.xz
(svn r12643) -Codechange: be more explicit about the orders a vehicle has (non stop and full load are ambiguous and depend on some patch settings).
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r--src/timetable_gui.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 914eb7e2d..d7f7d70ca 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -119,12 +119,16 @@ static void DrawTimetableWindow(Window *w)
break;
case OT_GOTO_STATION:
- SetDParam(0, (order->GetNonStopType() != ONSF_STOP_EVERYWHERE) ? STR_880A_GO_NON_STOP_TO : STR_8806_GO_TO);
- SetDParam(1, order->GetDestination());
+ SetDParam(0, STR_GO_TO_STATION);
+ SetDParam(1, STR_ORDER_GO_TO + order->GetNonStopType());
+ SetDParam(2, order->GetDestination());
+ SetDParam(3, STR_EMPTY);
if (order->wait_time > 0) {
- SetDParam(2, STR_TIMETABLE_STAY_FOR);
- SetTimetableParams(3, 4, order->wait_time);
+ SetDParam(4, STR_TIMETABLE_STAY_FOR);
+ SetTimetableParams(5, 6, order->wait_time);
+ } else {
+ SetDParam(4, STR_EMPTY);
}
break;