(svn r13941) -Codechange [YAPP]: Added YAPP-related penalties to YAPF. (michi_cc)
This commit is contained in:
@@ -589,6 +589,19 @@ static inline bool TracksOverlap(TrackBits bits)
|
||||
return bits != TRACK_BIT_HORZ && bits != TRACK_BIT_VERT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given track is contained within or overlaps some other tracks.
|
||||
*
|
||||
* @param tracks Tracks to be testet against
|
||||
* @param track The track to test
|
||||
* @return true if the track is already in the tracks or overlaps the tracks.
|
||||
*/
|
||||
static inline bool TrackOverlapsTracks(TrackBits tracks, Track track)
|
||||
{
|
||||
if (HasBit(tracks, track)) return true;
|
||||
return TracksOverlap(tracks | TrackToTrackBits(track));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the trackdir means that we are reversing.
|
||||
* @param dir the trackdir to check
|
||||
|
Reference in New Issue
Block a user