summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-19 20:06:55 +0000
committersmatz <smatz@openttd.org>2008-06-19 20:06:55 +0000
commit1cf74e76677c467a98b425c87e12b587aa24b66b (patch)
tree925814a4628fa214d4a40ee921cafa8c4a97a6cd
parentbee793422077fbc208457c5775b67c2d6d693579 (diff)
downloadopenttd-1cf74e76677c467a98b425c87e12b587aa24b66b.tar.xz
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
-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 */