Fix timetable auto-separation with go via station orders

pull/59/head
Jonathan G Rennison 6 years ago
parent ad1c402ad8
commit 71852c3f37

@ -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;
}

@ -578,7 +578,7 @@ struct TimetableWindow : Window {
have_conditional = true;
if (!order->IsWaitTimetabled()) have_non_timetabled_conditional_branch = true;
} else {
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)) {
have_missing_wait = true;
}
if (order->GetTravelTime() == 0 && !order->IsTravelTimetabled()) {

Loading…
Cancel
Save