Fix #9665: [Linkgraph] Fix travel times of non-direct journeys
This commit is contained in:

committed by
Michael Lutz

parent
c5369caa45
commit
f8a7b76675
@@ -3148,6 +3148,13 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
|
||||
/* Use current order time to approximate last loading time */
|
||||
if (IsSavegameVersionBefore(SLV_LAST_LOADING_TICK)) {
|
||||
for (Vehicle *v : Vehicle::Iterate()) {
|
||||
v->last_loading_tick = std::max(_tick_counter, static_cast<uint64>(v->current_order_time)) - v->current_order_time;
|
||||
}
|
||||
}
|
||||
|
||||
/* Compute station catchment areas. This is needed here in case UpdateStationAcceptance is called below. */
|
||||
Station::RecomputeCatchmentForAll();
|
||||
|
||||
|
Reference in New Issue
Block a user