Instawhip: consistently flicker on opposite frame of player flashing tics

This commit is contained in:
James R 2023-08-17 18:12:59 -07:00
parent a680e11675
commit fe6da4e087

View file

@ -34,7 +34,8 @@ void Obj_InstaWhipThink (mobj_t *whip)
// Visuals
whip->renderflags |= RF_NOSPLATBILLBOARD|RF_FULLBRIGHT;
if (whip->renderflags & RF_DONTDRAW)
// This is opposite of player flashing tics
if (leveltime & 1)
whip->renderflags &= ~RF_DONTDRAW;
else
whip->renderflags |= RF_DONTDRAW;