Fix final-ring whip charge delay edge case

This commit is contained in:
AJ Martinez 2023-10-13 18:54:56 -07:00
parent c41b8e97da
commit 17a9d39877

View file

@ -8270,7 +8270,7 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
// If the button stays held, delay charge a bit.
if (player->instaWhipChargeLockout)
player->instaWhipChargeLockout--;
if (player->rings > 0 || player->itemamount)
if (player->rings > 0 || player->itemamount || player->ringdelay)
player->instaWhipChargeLockout = 3*TICRATE/4;
if (!(player->cmd.buttons & BT_ATTACK)) // Deliberate Item button release, no need to protect you from lockout
player->instaWhipChargeLockout = 0;