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:
@@ -3977,7 +3977,6 @@ static Track ChooseTrainTrack(Train *v, TileIndex tile, DiagDirection enterdir,
|
|||||||
return FindFirstTrack(tracks);
|
return FindFirstTrack(tracks);
|
||||||
}
|
}
|
||||||
if (res_dest.okay) {
|
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);
|
bool long_reserve = (CheckLongReservePbsTunnelBridgeOnTrackdir(v, res_dest.tile, res_dest.trackdir) != INVALID_TILE);
|
||||||
if (!long_reserve) {
|
if (!long_reserve) {
|
||||||
CFollowTrackRail ft(v);
|
CFollowTrackRail ft(v);
|
||||||
|
Reference in New Issue
Block a user