diff options
author | michi_cc <michi_cc@openttd.org> | 2008-10-01 15:48:44 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2008-10-01 15:48:44 +0000 |
commit | 166793bd93c3faed311bfa34126149d142e44b7e (patch) | |
tree | 334b42c3b892538fe7f76fb9f932d8e6068035b8 /src/yapf/yapf_costrail.hpp | |
parent | 96156a8ab137516cf52a06fba0b68dcbb799c337 (diff) | |
download | openttd-166793bd93c3faed311bfa34126149d142e44b7e.tar.xz |
(svn r14428) -Fix [FS#2306]: A 90-degree curve can be a safe waiting position if they are forbidden for trains.
Diffstat (limited to 'src/yapf/yapf_costrail.hpp')
-rw-r--r-- | src/yapf/yapf_costrail.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yapf/yapf_costrail.hpp b/src/yapf/yapf_costrail.hpp index 8259f4bb9..e7e301d93 100644 --- a/src/yapf/yapf_costrail.hpp +++ b/src/yapf/yapf_costrail.hpp @@ -437,8 +437,8 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th end_segment_reason |= ESRB_DEAD_END; } - if (TrackFollower::DoTrackMasking() && tf_local.m_err != TrackFollower::EC_90DEG) { - if (!HasOnewaySignalBlockingTrackdir(cur.tile, cur.td)) end_segment_reason |= ESRB_SAFE_TILE; + if (TrackFollower::DoTrackMasking() && !HasOnewaySignalBlockingTrackdir(cur.tile, cur.td)) { + end_segment_reason |= ESRB_SAFE_TILE; } break; } |