Prevent using a grow while invincible resetting the invincible music timer, when that SHOULDN'T be touched and will be set to grow properly once that's over.

This commit is contained in:
toaster 2022-02-11 01:13:38 +00:00
parent 4567d9c57f
commit 03a47cfb5a

View file

@ -9222,7 +9222,11 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
player->growshrinktimer = itemtime+(4*TICRATE); // 12 seconds
if (P_IsLocalPlayer(player) == true)
if (player->invincibilitytimer > 0)
{
; // invincibility has priority in P_RestoreMusic, no point in starting here
}
else if (P_IsLocalPlayer(player) == true)
{
S_ChangeMusicSpecial("kgrow");
}