From afb82e7990197850188765173b2b5b2ea16ecaa0 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sun, 26 Feb 2023 15:51:01 -0700 Subject: [PATCH] Pause Grow/Invinc/Rocket timers in midair --- src/k_kart.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index efbe1bc17..f4fcb37a3 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -7748,12 +7748,12 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd) } } - if (player->invincibilitytimer) + if (player->invincibilitytimer && onground == true) player->invincibilitytimer--; if ((player->respawn.state == RESPAWNST_NONE) && player->growshrinktimer != 0) { - if (player->growshrinktimer > 0) + if (player->growshrinktimer > 0 && onground == true) player->growshrinktimer--; if (player->growshrinktimer < 0) player->growshrinktimer++; @@ -7810,7 +7810,8 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd) if (player->stealingtimer == 0 - && player->rocketsneakertimer) + && player->rocketsneakertimer + && onground == true) player->rocketsneakertimer--; if (player->hyudorotimer)