Skip over dummy/invalid orders in destination prediction and auto-separation

This commit is contained in:
Jonathan G Rennison
2023-04-03 20:29:23 +01:00
parent 3d1b0af8f6
commit e3e743ba1e
2 changed files with 12 additions and 3 deletions

View File

@@ -707,8 +707,8 @@ std::vector<TimetableProgress> PopulateSeparationState(const Vehicle *v_start)
// Do not try to separate vehicles on depot service or halt orders
separation_valid = false;
}
if (order->IsType(OT_RELEASE_SLOT) || order->IsType(OT_COUNTER)) {
// Do not try to separate vehicles on release slot or change counter orders
if (order->IsType(OT_RELEASE_SLOT) || order->IsType(OT_COUNTER) || order->IsType(OT_DUMMY)) {
// Do not try to separate vehicles on release slot, change counter, or invalid orders
separation_valid = false;
}
int order_ticks;