From 8d9864f2a3e916c4e2d638c6a4fedcdc956c5bf6 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Thu, 5 May 2022 22:09:09 -0400 Subject: [PATCH] Fix "you got em" --- src/k_kart.c | 2 +- src/p_inter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index e09272c0..061da18b 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9178,7 +9178,7 @@ void K_drawKartHUD(void) if (modeattacking || freecam) // everything after here is MP and debug only return; - if (G_BattleGametype() && !splitscreen && FixedRem(stplyr->kartstuff[k_yougotem], 2*FRACUNIT)) // * YOU GOT EM * + if (G_BattleGametype() && !splitscreen && ((stplyr->kartstuff[k_yougotem] / FRACUNIT) % 2)) // * YOU GOT EM * V_DrawScaledPatch(BASEVIDWIDTH/2 - (SHORT(kp_yougotem->width)/2), 32, V_HUDTRANS, kp_yougotem); // Draw FREE PLAY. diff --git a/src/p_inter.c b/src/p_inter.c index f48924e4..a3809c29 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -494,7 +494,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) special->target->player->kartstuff[k_comebackpoints] += ptadd; if (ptadd > 1) - special->target->player->kartstuff[k_yougotem] = 2*TICRATE; + special->target->player->kartstuff[k_yougotem] = (2*TICRATE) * FRACUNIT; if (special->target->player->kartstuff[k_comebackpoints] >= 2) K_StealBumper(special->target->player, player, true); @@ -557,7 +557,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) special->target->player->kartstuff[k_comebackpoints] += ptadd; if (ptadd > 1) - special->target->player->kartstuff[k_yougotem] = 2*TICRATE; + special->target->player->kartstuff[k_yougotem] = (2*TICRATE) * FRACUNIT; if (special->target->player->kartstuff[k_comebackpoints] >= 2) K_StealBumper(special->target->player, player, true);