Fix timetable auto-separation with go via station orders
This commit is contained in:
@@ -547,7 +547,7 @@ static inline bool IsOrderUsableForSeparation(const Order *order)
|
|||||||
return false;
|
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
|
// non-station orders are permitted to have 0 wait times
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -578,7 +578,7 @@ struct TimetableWindow : Window {
|
|||||||
have_conditional = true;
|
have_conditional = true;
|
||||||
if (!order->IsWaitTimetabled()) have_non_timetabled_conditional_branch = true;
|
if (!order->IsWaitTimetabled()) have_non_timetabled_conditional_branch = true;
|
||||||
} else {
|
} 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;
|
have_missing_wait = true;
|
||||||
}
|
}
|
||||||
if (order->GetTravelTime() == 0 && !order->IsTravelTimetabled()) {
|
if (order->GetTravelTime() == 0 && !order->IsTravelTimetabled()) {
|
||||||
|
Reference in New Issue
Block a user