yapf/follow_track.hpp
changeset 3912 08c70885ec45
parent 3900 2c84ed52709d
child 3915 914d45c135c7
equal deleted inserted replaced
3911:ac03139db7cf 3912:08c70885ec45
    83 
    83 
    84 	/** stores track status (available trackdirs) for the new tile into m_new_td_bits */
    84 	/** stores track status (available trackdirs) for the new tile into m_new_td_bits */
    85 	FORCEINLINE bool QueryNewTileTrackStatus()
    85 	FORCEINLINE bool QueryNewTileTrackStatus()
    86 	{
    86 	{
    87 		CPerfStart perf(*m_pPerf);
    87 		CPerfStart perf(*m_pPerf);
    88 		if (GetTileType(m_new_tile) == MP_RAILWAY && IsPlainRailTile(m_new_tile)) {
    88 		if (IsRailTT() && GetTileType(m_new_tile) == MP_RAILWAY && IsPlainRailTile(m_new_tile)) {
    89 			m_new_td_bits = (TrackdirBits)(GetTrackBits(m_new_tile) * 0x101);
    89 			m_new_td_bits = (TrackdirBits)(GetTrackBits(m_new_tile) * 0x101);
    90 		} else {
    90 		} else {
    91 			uint32 ts = GetTileTrackStatus(m_new_tile, TT());
    91 			uint32 ts = GetTileTrackStatus(m_new_tile, TT());
    92 			m_new_td_bits = (TrackdirBits)(ts & TRACKDIR_BIT_MASK);
    92 			m_new_td_bits = (TrackdirBits)(ts & TRACKDIR_BIT_MASK);
    93 		}
    93 		}