Fix 9e8a4314: Start signal state erroneously changed if it has slot acquire

This commit is contained in:
Jonathan G Rennison
2024-01-28 20:03:10 +00:00
parent efab96b82b
commit 31d87f6101

View File

@@ -4444,6 +4444,8 @@ static Track ChooseTrainTrack(Train *v, TileIndex tile, DiagDirection enterdir,
if (_settings_game.vehicle.train_braking_model == TBM_REALISTIC) FillTrainReservationLookAhead(v);
return best_track;
}
} else if (res_dest.tile == tile) {
if (changed_signal != INVALID_TRACKDIR) SetSignalStateByTrackdir(tile, changed_signal, SIGNAL_STATE_RED);
}
/* Check if the train needs service here, so it has a chance to always find a depot.