Power-ups: always give player consistent hitlag on collect, even if they are near MAXHITLAGTICS

This commit is contained in:
James R 2024-03-07 07:46:26 -08:00
parent 80a65cd61f
commit 54240ac96b

View file

@ -56,7 +56,7 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time)
S_StartSound(NULL, sfx_gsha7l);
player->flashing = 2*TICRATE;
K_AddHitLag(player->mo, BATTLE_POWERUP_VFX_TIME, false);
player->mo->hitlag += BATTLE_POWERUP_VFX_TIME;
player->powerupVFXTimer = BATTLE_POWERUP_VFX_TIME;
Obj_SpawnPowerUpSpinner(player->mo, powerup, BATTLE_POWERUP_VFX_TIME);