From 2e68b35106a8e9e29372594c75b37172d90c434f Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 14 Jul 2008 21:01:49 +0000 Subject: (svn r13704) -Fix: make timetables work more sensible when used in conjunction with conditional orders, i.e. make it possibly to tell how long to travel to the next destination if you jump. --- src/order_gui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/order_gui.cpp') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index c2ed05d8a..b52efac7a 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -251,6 +251,13 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int if (order->GetConditionVariable() == OCV_MAX_SPEED) value = ConvertSpeedToDisplaySpeed(value); SetDParam(5, value); } + + if (timetable && order->wait_time > 0) { + SetDParam(6, STR_TIMETABLE_AND_TRAVEL_FOR); + SetTimetableParams(7, 8, order->wait_time); + } else { + SetDParam(6, STR_EMPTY); + } break; default: NOT_REACHED(); -- cgit v1.2.3-70-g09d2