- SW: fixed NORM_xxx macros

kHitIndexMask already has the -1 considered, it is 0x3fff.
This commit is contained in:
Christoph Oelckers 2021-11-12 11:09:24 +01:00
parent 401f3cf1d7
commit 01deb13694

View file

@ -330,9 +330,9 @@ inline int SPRITEp_SIZE_BOS(const spritetype* sp)
#define HIT_SECTOR BIT(14)
#define HIT_PLAX_WALL BIT(16)
#define NORM_SPRITE(val) ((val) & (kHitIndexMask - 1))
#define NORM_WALL(val) ((val) & (kHitIndexMask - 1))
#define NORM_SECTOR(val) ((val) & (kHitIndexMask - 1))
#define NORM_SPRITE(val) ((val) & (kHitIndexMask))
#define NORM_WALL(val) ((val) & (kHitIndexMask))
#define NORM_SECTOR(val) ((val) & (kHitIndexMask))
// overwritesprite flags
#define OVER_SPRITE_MIDDLE (BIT(0))