From 5788ea574cd5f05d55f529b5fc3df0826a8f49dc Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 16 Nov 2023 21:08:15 -0800 Subject: [PATCH] Power-up Aura: hide if Mega Barrier is the only power-up --- src/objects/powerup-aura.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/objects/powerup-aura.cpp b/src/objects/powerup-aura.cpp index 80620010d..6bfa47096 100644 --- a/src/objects/powerup-aura.cpp +++ b/src/objects/powerup-aura.cpp @@ -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()