mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
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:
parent
4567d9c57f
commit
03a47cfb5a
1 changed files with 5 additions and 1 deletions
|
|
@ -9222,7 +9222,11 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
|
|
||||||
player->growshrinktimer = itemtime+(4*TICRATE); // 12 seconds
|
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");
|
S_ChangeMusicSpecial("kgrow");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue