diff options
author | KUDr <KUDr@openttd.org> | 2006-05-29 15:04:42 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-05-29 15:04:42 +0000 |
commit | fe2d631b6679bdbaa2c416b66232fc70768a71ee (patch) | |
tree | 331b7eb329c307cf21323eb4ff6f8f0d664f966e /yapf | |
parent | 4af16456766274e61ffe5abe017d659924a282e3 (diff) | |
download | openttd-fe2d631b6679bdbaa2c416b66232fc70768a71ee.tar.xz |
(svn r5013) -Fix: [YAPF] RVs trying to plan route through railway.
Should fix assert("(GetTileTrackStatus(m_old_tile, TT()) & TrackdirToTrackdirBits(m_old_td)) != 0")
Thanks Celestar for the reproducible case.
Diffstat (limited to 'yapf')
-rw-r--r-- | yapf/follow_track.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/follow_track.hpp b/yapf/follow_track.hpp index f09d8fde0..b82d6186c 100644 --- a/yapf/follow_track.hpp +++ b/yapf/follow_track.hpp @@ -85,7 +85,7 @@ protected: FORCEINLINE bool QueryNewTileTrackStatus() { CPerfStart perf(*m_pPerf); - if (GetTileType(m_new_tile) == MP_RAILWAY && IsPlainRailTile(m_new_tile)) { + if (IsRailTT() && GetTileType(m_new_tile) == MP_RAILWAY && IsPlainRailTile(m_new_tile)) { m_new_td_bits = (TrackdirBits)(GetTrackBits(m_new_tile) * 0x101); } else { uint32 ts = GetTileTrackStatus(m_new_tile, TT()); |