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:
innocenat
2017-06-28 01:15:30 +07:00
parent 4e96150f88
commit 87fdd7059a
3 changed files with 100 additions and 7 deletions

View File

@@ -74,6 +74,7 @@ typedef struct Departure {
DepartureType type; ///< The type of the departure (departure or arrival)
const Vehicle *vehicle; ///< The vehicle performing this departure
const Order *order; ///< The order corresponding to this departure
uint scheduled_waiting_time; ///< Scheduled waiting time if scheduled dispatch is used
Departure() : terminus(INVALID_STATION), via(INVALID_STATION), calling_at(), vehicle(NULL) { }
~Departure()
{