equal
deleted
inserted
replaced
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 } |