- removed FLIP macro

was only used 3 times
This commit is contained in:
Christoph Oelckers 2021-12-27 19:10:26 +01:00
parent 08fcfb382c
commit 7727597bd7
3 changed files with 3 additions and 4 deletions

View file

@ -43,7 +43,7 @@ inline int8_t LIGHT_MaxDark(DSWActor* sp) { return int8_t(SP_TAG6(sp)); }
inline uint8_t& LIGHT_ShadeInc(DSWActor* sp) { return SP_TAG7(sp); }
inline bool LIGHT_Dir(DSWActor* sp) { return (!!(TEST(sp->spr.extra, SPRX_BOOL10))); }
inline void LIGHT_DirChange(DSWActor* sp) { (FLIP(sp->spr.extra, SPRX_BOOL10)); }
inline void LIGHT_DirChange(DSWActor* sp) { sp->spr.extra ^= SPRX_BOOL10; }
int8_t& LIGHT_FloorShade(DSWActor* a) { return a->spr.xoffset; }
int8_t& LIGHT_CeilingShade(DSWActor* a) { return a->spr.yoffset; }

View file

@ -43,7 +43,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
*/
#define TEST(flags,mask) ((flags) & (mask))
#define FLIP(flags,mask) ((flags) ^= (mask))
// mask definitions

View file

@ -11557,7 +11557,7 @@ int InitSerpRing(DSWActor* actor)
actorNew->spr.ang = RANDOM_P2(2048<<5)>>5;
// control direction of spinning
FLIP(actor->user.Flags, SPR_BOUNCE);
actor->user.Flags ^= SPR_BOUNCE;
actorNew->user.Flags |= (TEST(actor->user.Flags, SPR_BOUNCE));
actorNew->user.Dist = 600;
@ -12298,7 +12298,7 @@ int InitSumoSkull(DSWActor* actor)
actorNew->spr.ang = RANDOM_P2(2048<<5)>>5;
// control direction of spinning
FLIP(actor->user.Flags, SPR_BOUNCE);
actor->user.Flags ^= SPR_BOUNCE;
actorNew->user.Flags |= (TEST(actor->user.Flags, SPR_BOUNCE));
actorNew->user.StateEnd = s_SkullExplode;