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 | 872cefeb27a572135da6e15e78d80bb215c275c3 (patch) | |
tree | c76bbb103920009dd4035d34f545b0aded083ade /src/yapf/yapf_costrail.hpp | |
parent | b595d59497c4871a3746d566689cda419c7010cd (diff) | |
download | openttd-872cefeb27a572135da6e15e78d80bb215c275c3.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/yapf/yapf_costrail.hpp')
-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; } |