Fix 05915b21: One-way behaviour of signalled bridge exit applied to bypassing track

This commit is contained in:
Jonathan G Rennison 2024-07-05 22:42:34 +01:00
parent b3e20ec9b6
commit 2d6c9c2f90

View File

@ -5754,7 +5754,8 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
}
goto reverse_train_direction;
} else if (!(v->track & TRACK_BIT_WORMHOLE) && IsTunnelBridgeWithSignalSimulation(gp.new_tile) &&
IsTunnelBridgeSignalSimulationExitOnly(gp.new_tile) && v->force_proceed == TFP_NONE) {
IsTunnelBridgeSignalSimulationExitOnly(gp.new_tile) && TrackdirEntersTunnelBridge(gp.new_tile, FindFirstTrackdir(trackdirbits)) &&
v->force_proceed == TFP_NONE) {
goto reverse_train_direction;
} else {
TryReserveRailTrack(gp.new_tile, TrackBitsToTrack(chosen_track), false);