Changeset - r3912:06b11aec2007
[Not reviewed]
master
0 1 0
KUDr - 18 years ago 2006-05-29 15:04:42
kudr@openttd.org
(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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
yapf/follow_track.hpp
Show inline comments
 
@@ -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());
0 comments (0 inline, 0 general)