summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2009-02-05 02:07:13 +0000
committermichi_cc <michi_cc@openttd.org>2009-02-05 02:07:13 +0000
commit215bcb7d2741bf7577ffa9527ebbaa43dc21f90a (patch)
treeda21944d6243af8e561194027944858a1cf84405
parent26035c6f3d799a83f22cfdea72529ab8742e87fa (diff)
downloadopenttd-215bcb7d2741bf7577ffa9527ebbaa43dc21f90a.tar.xz
(svn r15348) -Fix (r15347): Preferred pylon position is dependant on the masked wires as well.
-rw-r--r--src/elrail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp
index 1d6daf00a..c5dfbcf57 100644
--- a/src/elrail.cpp
+++ b/src/elrail.cpp
@@ -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];
}
}