Fix #14991, 046b0c6: Respect non-stop order setting when adding waypoint orders (#14993)

This commit is contained in:
Tyler Trahan
2025-12-27 13:59:46 -05:00
committed by dP
parent 9c137ca774
commit fcb00ca74b

View File

@@ -425,7 +425,7 @@ static std::pair<Order, citymania::FeederOrderMod> GetOrderCmdFromTile(const Veh
v->type == VEH_TRAIN &&
IsTileOwner(tile, _local_company)) {
order.MakeGoToWaypoint(GetStationIndex(tile));
if (_settings_client.gui.new_nonstop != citymania::_fn_mod) order.SetNonStopType({});
if (_settings_client.gui.new_nonstop != citymania::_fn_mod) order.SetNonStopType({OrderNonStopFlag::NoIntermediate, OrderNonStopFlag::NoDestination});
return {order, citymania::FeederOrderMod::None};
}
@@ -434,7 +434,7 @@ static std::pair<Order, citymania::FeederOrderMod> GetOrderCmdFromTile(const Veh
v->type == VEH_ROAD &&
IsTileOwner(tile, _local_company)) {
order.MakeGoToWaypoint(GetStationIndex(tile));
if (_settings_client.gui.new_nonstop != _ctrl_pressed) order.SetNonStopType({});
if (_settings_client.gui.new_nonstop != _ctrl_pressed) order.SetNonStopType({OrderNonStopFlag::NoIntermediate, OrderNonStopFlag::NoDestination});
return std::make_pair(order, citymania::FeederOrderMod::None);
}