summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-08 14:58:27 +0000
committersmatz <smatz@openttd.org>2008-08-08 14:58:27 +0000
commit5b3d1432df6e7460b40169a162fe5876d12bbccd (patch)
treec76bbb103920009dd4035d34f545b0aded083ade /src
parent5719c0f16d34ecc34aee8dafcaf5d213e8ef4b9a (diff)
downloadopenttd-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.hpp2
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;
}