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 | c1a1e28b88bfe5160822f435006f61ec831b0e28 (patch) | |
tree | 925814a4628fa214d4a40ee921cafa8c4a97a6cd /src | |
parent | 6fa570762c21aacbfdd5ef4ed0a9cfa7f027da14 (diff) | |
download | openttd-c1a1e28b88bfe5160822f435006f61ec831b0e28.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 */ |