Partial fix for departure board with scheduled dispatch
In case that the scheduled point is a station, the departure board cannot map arrival->departure correctly when showing both in same line is enabled. For individial departure, the departure time and vehicle are not correspondence to each other. There will be train departing at that time, but might not be the vehicle shown in the board.
This commit is contained in:
@@ -606,7 +606,7 @@ void DeparturesWindow<Twaypoint>::DrawDeparturesListItems(const Rect &r) const
|
||||
|
||||
/* Time */
|
||||
SetDParam(0, d->scheduled_date);
|
||||
SetDParam(1, d->scheduled_date - d->order->GetWaitTime());
|
||||
SetDParam(1, d->scheduled_date - (d->scheduled_waiting_time > 0 ? d->scheduled_waiting_time : d->order->GetWaitTime()));
|
||||
ltr ? DrawString( text_left, text_left + time_width, y + 1, time_str)
|
||||
: DrawString(text_right - time_width, text_right, y + 1, time_str);
|
||||
|
||||
|
Reference in New Issue
Block a user