From d2b1ff595de1d3a98128851148e6c7235b69c786 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 18 Jul 2025 17:43:44 +0200 Subject: [PATCH] remove itemamount check here replicate vanilla even if this becomes negative this does not seem to crash, so id rather do whatever vanilla does --- src/p_inter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_inter.c b/src/p_inter.c index 059bbe15c..ea1aec415 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -1542,15 +1542,17 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source) { if (target->target->hnext) K_KillBananaChain(target->target->hnext, inflictor, source); + target->target->player->kartstuff[k_itemamount] = 0; } - else if (target->target->player->kartstuff[k_itemamount]) + else target->target->player->kartstuff[k_itemamount]--; } else if ((target->type == MT_ORBINAUT_SHIELD && target->target->player->kartstuff[k_itemtype] == KITEM_ORBINAUT) // orbit items || (target->type == MT_JAWZ_SHIELD && target->target->player->kartstuff[k_itemtype] == KITEM_JAWZ)) { target->target->player->kartstuff[k_itemamount]--; + if (target->lastlook != 0) { K_RepairOrbitChain(target);