Fix infinite bubble bug

This commit is contained in:
Sally Cochenour 2020-03-17 20:36:23 -04:00
parent 1886115e54
commit e5fb55df83

View file

@ -6734,9 +6734,7 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
if (!HOLDING_ITEM && NO_HYUDORO) if (!HOLDING_ITEM && NO_HYUDORO)
{ {
if (cmd->buttons & BT_ATTACK) if ((cmd->buttons & BT_ATTACK) && player->kartstuff[k_holdready])
{
if (player->kartstuff[k_holdready])
{ {
if (player->kartstuff[k_bubbleblowup] == 0) if (player->kartstuff[k_bubbleblowup] == 0)
S_StartSound(player->mo, sfx_s3k75); S_StartSound(player->mo, sfx_s3k75);
@ -6754,7 +6752,6 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
player->kartstuff[k_itemamount]--; player->kartstuff[k_itemamount]--;
} }
} }
}
else else
{ {
if (player->kartstuff[k_bubbleblowup] > bubbletime) if (player->kartstuff[k_bubbleblowup] > bubbletime)