diff options
author | smatz <smatz@openttd.org> | 2008-08-08 14:58:27 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-08-08 14:58:27 +0000 |
commit | 5b3d1432df6e7460b40169a162fe5876d12bbccd (patch) | |
tree | c76bbb103920009dd4035d34f545b0aded083ade /src | |
parent | 5719c0f16d34ecc34aee8dafcaf5d213e8ef4b9a (diff) | |
download | openttd-5b3d1432df6e7460b40169a162fe5876d12bbccd.tar.xz |
(svn r14023) -Fix (r13944) [YAPP]: If YAPF encountered a dead-end that had a signal on it, is could be falsely seen as a valid destination. (michi_cc)
Diffstat (limited to 'src')
-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 18d366297..ebfa9a6a7 100644 --- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -438,7 +438,7 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th } if (TrackFollower::MaskReservedTracks() && tf_local.m_err != TrackFollower::EC_90DEG) { - end_segment_reason |= ESRB_SAFE_TILE; + if (!HasOnewaySignalBlockingTrackdir(cur.tile, cur.td)) end_segment_reason |= ESRB_SAFE_TILE; } break; } |