diff options
author | rubidium <rubidium@openttd.org> | 2008-08-02 22:49:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-02 22:49:10 +0000 |
commit | 5c55922a0637547548b8286cdaf0e8645478fc46 (patch) | |
tree | ee6f5139f01ac19eca3cf90b3651b1ea8931f4a3 /src/yapf | |
parent | d6645818b4b29a42dd617c92e23a525fe5170b6a (diff) | |
download | openttd-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.hpp | 2 |
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) { |