Codechange: Use HasTrack(dir) to improve code readability.
This commit is contained in:
@@ -142,7 +142,7 @@ public:
|
||||
/** Called by YAPF to detect if node ends in the desired destination */
|
||||
inline bool PfDetectDestination(Node &n)
|
||||
{
|
||||
return (n.m_key.m_tile == m_destTile) && ((m_destTrackdirs & TrackdirToTrackdirBits(n.GetTrackdir())) != TRACKDIR_BIT_NONE);
|
||||
return (n.m_key.m_tile == m_destTile) && HasTrackdir(m_destTrackdirs, n.GetTrackdir());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user