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 committed by NepDisk
parent b048467aa2
commit 0882846d29

View file

@ -1706,7 +1706,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)