diff options
Diffstat (limited to 'rail.h')
-rw-r--r-- | rail.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -296,7 +296,7 @@ static inline TrackdirBits TrackToTrackdirBits(Track track) */ static inline TrackBits TrackdirBitsToTrackBits(TrackdirBits bits) { - return (TrackBits)(bits | (bits >> 8)); + return (TrackBits)((bits | (bits >> 8)) & TRACK_BIT_MASK); } /** |