Mercurial > hg > openttd
changeset 9876:f781986a229f draft
(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)
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 08 Aug 2008 14:58:27 +0000 |
parents | 455ec20910c6 |
children | dc99ca000148 |
files | src/yapf/yapf_costrail.hpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -438,7 +438,7 @@ } 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; }