mirror of https://github.com/OpenTTD/OpenTTD
(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.release/0.5
parent
e5ff753699
commit
bcdd46ff61
|
@ -85,7 +85,7 @@ protected:
|
||||||
FORCEINLINE bool QueryNewTileTrackStatus()
|
FORCEINLINE bool QueryNewTileTrackStatus()
|
||||||
{
|
{
|
||||||
CPerfStart perf(*m_pPerf);
|
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);
|
m_new_td_bits = (TrackdirBits)(GetTrackBits(m_new_tile) * 0x101);
|
||||||
} else {
|
} else {
|
||||||
uint32 ts = GetTileTrackStatus(m_new_tile, TT());
|
uint32 ts = GetTileTrackStatus(m_new_tile, TT());
|
||||||
|
|
Loading…
Reference in New Issue