mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'no-sonicboom-sounds-invinc-grow' into 'master'
Don't play sonic boom sounds in invinc or grow state See merge request kart-krew-dev/ring-racers-internal!2931
This commit is contained in:
commit
36a0331c8b
1 changed files with 12 additions and 11 deletions
|
|
@ -8118,8 +8118,9 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
||||||
mobj->renderflags |= (RF_DONTDRAW & ~K_GetPlayerDontDrawFlag(player));
|
mobj->renderflags |= (RF_DONTDRAW & ~K_GetPlayerDontDrawFlag(player));
|
||||||
|
|
||||||
// Alright, let's just handle all the sfx down here
|
// Alright, let's just handle all the sfx down here
|
||||||
|
boolean not_invinc_or_grow = player->invincibilitytimer == 0 && player->growshrinktimer <= 0;
|
||||||
|
|
||||||
if (P_IsDisplayPlayer(player))
|
if (P_IsDisplayPlayer(player) && not_invinc_or_grow)
|
||||||
{
|
{
|
||||||
UINT8 MIN_VOLUME = 25;
|
UINT8 MIN_VOLUME = 25;
|
||||||
UINT8 MAX_VOLUME = 75;
|
UINT8 MAX_VOLUME = 75;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue