(svn r15348) -Fix (r15347): Preferred pylon position is dependant on the masked wires as well.

This commit is contained in:
michi_cc 2009-02-05 02:07:13 +00:00
parent 31a17a4add
commit f936afa64a
1 changed files with 1 additions and 1 deletions

View File

@ -326,10 +326,10 @@ static void DrawCatenaryRailway(const TileInfo *ti)
* of the PCP for preferred/allowed determination*/
PCPpos = (TrackSourceTile[i][k] == TS_HOME) ? i : ReverseDiagDir(i);
SetBit(PCPstatus, i); // This PCP is in use
PPPpreferred[i] &= PreferredPPPofTrackAtPCP[TracksAtPCP[i][k]][PCPpos];
}
if (HasBit(trackconfig[TrackSourceTile[i][k]], TracksAtPCP[i][k])) {
PPPpreferred[i] &= PreferredPPPofTrackAtPCP[TracksAtPCP[i][k]][PCPpos];
PPPallowed[i] &= ~DisallowedPPPofTrackAtPCP[TracksAtPCP[i][k]][PCPpos];
}
}