summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2014-05-01 14:53:06 +0000
committerfonsinchen <fonsinchen@openttd.org>2014-05-01 14:53:06 +0000
commit64e4e52c3342a459dd2ee96fb0b9b165edaafb96 (patch)
tree4c4f1b67a87a61e0350bccf085f098b3ade700dd /src/order_gui.cpp
parent11d98f043e96b7b7d9a2f97b5a7297b641f97c26 (diff)
downloadopenttd-64e4e52c3342a459dd2ee96fb0b9b165edaafb96.tar.xz
(svn r26550) -Change: Show measured order times in timetable GUI
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 2a3007080..e69f229f0 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -266,8 +266,8 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
if (timetable) {
SetDParam(3, STR_EMPTY);
- if (order->IsWaitTimetabled()) {
- SetDParam(5, STR_TIMETABLE_STAY_FOR);
+ if (order->GetWaitTime() > 0) {
+ SetDParam(5, order->IsWaitTimetabled() ? STR_TIMETABLE_STAY_FOR : STR_TIMETABLE_STAY_FOR_ESTIMATED);
SetTimetableParams(6, 7, order->GetWaitTime());
}
} else {
@@ -334,8 +334,8 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
SetDParam(4, value);
}
- if (timetable && order->IsWaitTimetabled()) {
- SetDParam(5, STR_TIMETABLE_AND_TRAVEL_FOR);
+ if (timetable && order->GetWaitTime() > 0) {
+ SetDParam(5, order->IsWaitTimetabled() ? STR_TIMETABLE_AND_TRAVEL_FOR : STR_TIMETABLE_AND_TRAVEL_FOR_ESTIMATED);
SetTimetableParams(6, 7, order->GetWaitTime());
} else {
SetDParam(5, STR_EMPTY);