Underwater: do not spawn bubbles around player using Bubble Shield

This commit is contained in:
James R 2024-03-08 22:13:17 -08:00
parent 44ff1d26cc
commit 33a31f9979

View file

@ -1778,7 +1778,7 @@ static void P_DoBubbleBreath(player_t *player)
fixed_t z = player->mo->z;
mobj_t *bubble = NULL;
if (!(player->mo->eflags & MFE_UNDERWATER) || player->spectator)
if (!(player->mo->eflags & MFE_UNDERWATER) || player->spectator || player->curshield == KSHIELD_BUBBLE)
return;
if (player->charflags & SF_MACHINE)