mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-17 03:29:09 +00:00
(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis
This commit is contained in:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user