Power-up Aura: hide if Mega Barrier is the only power-up

This commit is contained in:
James R 2023-11-16 21:08:15 -08:00
parent 6aa6b8c939
commit 5788ea574c

View file

@ -1,3 +1,4 @@
#include "../doomtype.h"
#include "../info.h"
#include "../g_game.h"
#include "../m_fixed.h"
@ -85,6 +86,15 @@ struct Aura : mobj_t
P_InstaScale(this, 11 * origin()->scale / 10);
translate();
if (K_AnyPowerUpRemaining(&players[seek()]) & ~POWERUP_BIT(POWERUP_BARRIER))
{
renderflags &= ~RF_DONTDRAW;
}
else
{
renderflags |= RF_DONTDRAW;
}
}
void translate()