summaryrefslogtreecommitdiff
path: root/src/yapf
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-02 22:49:10 +0000
committerrubidium <rubidium@openttd.org>2008-08-02 22:49:10 +0000
commit5c55922a0637547548b8286cdaf0e8645478fc46 (patch)
treeee6f5139f01ac19eca3cf90b3651b1ea8931f4a3 /src/yapf
parentd6645818b4b29a42dd617c92e23a525fe5170b6a (diff)
downloadopenttd-5c55922a0637547548b8286cdaf0e8645478fc46.tar.xz
(svn r13934) -Codechange [YAPP]: Handle through signals in the pathfinders. (michi_cc)
Diffstat (limited to 'src/yapf')
-rw-r--r--src/yapf/yapf_costrail.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp
index abd421068..ddfdca644 100644
--- a/src/yapf/yapf_costrail.hpp
+++ b/src/yapf/yapf_costrail.hpp
@@ -136,7 +136,7 @@ public:
if (IsTileType(tile, MP_RAILWAY)) {
bool has_signal_against = HasSignalOnTrackdir(tile, ReverseTrackdir(trackdir));
bool has_signal_along = HasSignalOnTrackdir(tile, trackdir);
- if (has_signal_against && !has_signal_along) {
+ if (has_signal_against && !has_signal_along && IsOnewaySignal(tile, TrackdirToTrack(trackdir))) {
// one-way signal in opposite direction
n.m_segment->m_end_segment_reason |= ESRB_DEAD_END;
} else if (has_signal_along) {