mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
Consider loading advance order type as stopped in ReReserveTrainPath
This commit is contained in:
parent
7d4c6a16ad
commit
7da47a5eaf
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user