Do not fill reservation lookahead if reservation could still be cancelled

If ExtendTrainReservation finds a safe waiting point, this could
later not be a safe waiting point after advancing orders, due to
conditionally reserve through routing restrictions
This commit is contained in:
Jonathan G Rennison
2021-02-11 22:31:48 +00:00
parent 764af07a33
commit 1b0e602ed5

View File

@@ -3977,7 +3977,6 @@ static Track ChooseTrainTrack(Train *v, TileIndex tile, DiagDirection enterdir,
return FindFirstTrack(tracks);
}
if (res_dest.okay) {
if (_settings_game.vehicle.train_braking_model == TBM_REALISTIC) FillTrainReservationLookAhead(v);
bool long_reserve = (CheckLongReservePbsTunnelBridgeOnTrackdir(v, res_dest.tile, res_dest.trackdir) != INVALID_TILE);
if (!long_reserve) {
CFollowTrackRail ft(v);