Prevent lookahead init for wrong way movement on signalled tunnel/bridge

pull/238/head
Jonathan G Rennison 3 years ago
parent 3d04979b66
commit 8646506127

@ -816,6 +816,7 @@ static int ScanTrainPositionForLookAheadStation(Train *t, TileIndex start_tile)
void TryCreateLookAheadForTrainInTunnelBridge(Train *t)
{
if (IsTunnelBridgeSignalSimulationExitOnly(t->tile)) return;
DiagDirection tb_dir = GetTunnelBridgeDirection(t->tile);
if (DirToDiagDirAlongAxis(t->direction, DiagDirToAxis(tb_dir)) == tb_dir) {
/* going in the right direction, allocate a new lookahead */

Loading…
Cancel
Save