Fix timetable auto-separation with go via station orders

This commit is contained in:
Jonathan G Rennison
2018-05-04 00:21:43 +01:00
parent ad1c402ad8
commit 71852c3f37
2 changed files with 2 additions and 2 deletions

View File

@@ -547,7 +547,7 @@ static inline bool IsOrderUsableForSeparation(const Order *order)
return false;
}
if (order->GetWaitTime() == 0 && order->IsType(OT_GOTO_STATION)) {
if (order->GetWaitTime() == 0 && order->IsType(OT_GOTO_STATION) && !(order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION)) {
// non-station orders are permitted to have 0 wait times
return false;
}