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 | d5def69d870a10d94e6801991077d86c3fb5c52f (patch) | |
tree | ee6f5139f01ac19eca3cf90b3651b1ea8931f4a3 /src/yapf | |
parent | c34a1db15e56b33c7c05b8bd4a2d783256c4cee0 (diff) | |
download | openttd-d5def69d870a10d94e6801991077d86c3fb5c52f.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) { |