(svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile
This commit is contained in:
@@ -343,7 +343,7 @@ static SigFlags ExploreSegment(Owner owner)
|
||||
}
|
||||
|
||||
case MP_STATION:
|
||||
if (!IsRailwayStation(tile) && !IsRailWaypoint(tile)) continue;
|
||||
if (!HasStationRail(tile)) continue;
|
||||
if (GetTileOwner(tile) != owner) continue;
|
||||
if (DiagDirToAxis(enterdir) != GetRailStationAxis(tile)) continue; // different axis
|
||||
if (IsStationTileBlocked(tile)) continue; // 'eye-candy' station tile
|
||||
|
Reference in New Issue
Block a user