1
0
Fork 0

(svn r13589) -Fix (r11802): signals could be propagated through waypoints built in orthogonal axis

release/0.7
smatz 2008-06-19 20:06:55 +00:00
parent bee7934220
commit 1cf74e7667
1 changed files with 1 additions and 0 deletions

View File

@ -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 */