From bcdd46ff61e63b1bf27eab8c9b9d8fad97e234db Mon Sep 17 00:00:00 2001 From: KUDr Date: Mon, 29 May 2006 15:04:42 +0000 Subject: (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. --- yapf/follow_track.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yapf/follow_track.hpp') 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()); -- cgit v1.2.3-70-g09d2