Consider loading advance order type as stopped in ReReserveTrainPath

This commit is contained in:
Jonathan G Rennison 2024-09-07 14:29:02 +01:00
parent 7d4c6a16ad
commit 7da47a5eaf

View File

@ -649,7 +649,7 @@ static inline bool ValParamTrackOrientation(Track track)
static void ReReserveTrainPath(Train *v)
{
const bool consider_stopped = (((v->vehstatus & VS_STOPPED) && v->cur_speed == 0) || v->current_order.IsType(OT_LOADING));
const bool consider_stopped = (((v->vehstatus & VS_STOPPED) && v->cur_speed == 0) || v->current_order.IsAnyLoadingType());
const bool at_safe_waiting_position = IsSafeWaitingPosition(v, v->tile, v->GetVehicleTrackdir(), true, _settings_game.pf.forbid_90_deg);
/* Don't extend the train's path if it's stopped or loading, and at a safe position. */