summaryrefslogtreecommitdiff
path: root/src/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal.cpp')
-rw-r--r--src/signal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index 5347964f4..5d71cd02c 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -298,6 +298,7 @@ static SigFlags ExploreSegment(Owner owner)
}
if (GetRailTileType(tile) == RAIL_TILE_WAYPOINT) {
+ if (GetWaypointAxis(tile) != DiagDirToAxis(enterdir)) continue;
if (!(flags & SF_TRAIN) && VehicleFromPos(tile, NULL, &TrainOnTileEnum)) flags |= SF_TRAIN;
tile += TileOffsByDiagDir(exitdir);
/* enterdir and exitdir stay the same */