mirror of https://github.com/OpenTTD/OpenTTD
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
parent
bee7934220
commit
1cf74e7667
|
@ -298,6 +298,7 @@ static SigFlags ExploreSegment(Owner owner)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetRailTileType(tile) == RAIL_TILE_WAYPOINT) {
|
if (GetRailTileType(tile) == RAIL_TILE_WAYPOINT) {
|
||||||
|
if (GetWaypointAxis(tile) != DiagDirToAxis(enterdir)) continue;
|
||||||
if (!(flags & SF_TRAIN) && VehicleFromPos(tile, NULL, &TrainOnTileEnum)) flags |= SF_TRAIN;
|
if (!(flags & SF_TRAIN) && VehicleFromPos(tile, NULL, &TrainOnTileEnum)) flags |= SF_TRAIN;
|
||||||
tile += TileOffsByDiagDir(exitdir);
|
tile += TileOffsByDiagDir(exitdir);
|
||||||
/* enterdir and exitdir stay the same */
|
/* enterdir and exitdir stay the same */
|
||||||
|
|
Loading…
Reference in New Issue