diff options
author | smatz <smatz@openttd.org> | 2008-06-19 20:06:55 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-06-19 20:06:55 +0000 |
commit | 1cf74e76677c467a98b425c87e12b587aa24b66b (patch) | |
tree | 925814a4628fa214d4a40ee921cafa8c4a97a6cd /src | |
parent | bee793422077fbc208457c5775b67c2d6d693579 (diff) | |
download | openttd-1cf74e76677c467a98b425c87e12b587aa24b66b.tar.xz |
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
Diffstat (limited to 'src')
-rw-r--r-- | src/signal.cpp | 1 |
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 */ |