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
commitf936afa64ab6074976a494ce377524d7b06d8853 (patch)
treeda21944d6243af8e561194027944858a1cf84405
parent31a17a4addf86843250288f6bbc190e4a5874ef6 (diff)
downloadopenttd-f936afa64ab6074976a494ce377524d7b06d8853.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];
}
}