mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Power-up Aura: hide if Mega Barrier is the only power-up
This commit is contained in:
parent
6aa6b8c939
commit
5788ea574c
1 changed files with 10 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include "../doomtype.h"
|
||||||
#include "../info.h"
|
#include "../info.h"
|
||||||
#include "../g_game.h"
|
#include "../g_game.h"
|
||||||
#include "../m_fixed.h"
|
#include "../m_fixed.h"
|
||||||
|
|
@ -85,6 +86,15 @@ struct Aura : mobj_t
|
||||||
P_InstaScale(this, 11 * origin()->scale / 10);
|
P_InstaScale(this, 11 * origin()->scale / 10);
|
||||||
|
|
||||||
translate();
|
translate();
|
||||||
|
|
||||||
|
if (K_AnyPowerUpRemaining(&players[seek()]) & ~POWERUP_BIT(POWERUP_BARRIER))
|
||||||
|
{
|
||||||
|
renderflags &= ~RF_DONTDRAW;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
renderflags |= RF_DONTDRAW;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void translate()
|
void translate()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue