diff options
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index d305391a9..e4f0a6bf5 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1667,7 +1667,7 @@ static Vehicle *TrainApproachingCrossing(TileIndex tile) { assert(IsLevelCrossingTile(tile)); - DiagDirection dir = AxisToDiagDir(OtherAxis(GetCrossingRoadAxis(tile))); + DiagDirection dir = AxisToDiagDir(GetCrossingRailAxis(tile)); TileIndex tile_from = tile + TileOffsByDiagDir(dir); Vehicle *v = (Vehicle *)VehicleFromPos(tile_from, &tile, &TrainApproachingCrossingEnum); |