From af4f28cb2f140c18a6d9a60717fc2bbc83115d7b Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 29 Jun 2025 11:55:14 -0400 Subject: [PATCH] fix battle win animation --- src/k_hud.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/k_hud.c b/src/k_hud.c index 020c9a4e3..b307a9842 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -3935,7 +3935,6 @@ static void K_drawKartFinish(void) static void K_drawBattleFullscreen(void) { - INT32 cardanim = stplyr->karthud[khud_cardanimation] << FRACBITS; // fill in the fractional bits @@ -3961,11 +3960,11 @@ static void K_drawBattleFullscreen(void) { if ((splitscreen == 1 && stplyrnum == 1) || (splitscreen > 1 && stplyrnum & 2)) { - y = 232-(cardanim/2); + y = (232*FRACUNIT) - (cardanim/2); splitflags = V_SNAPTOBOTTOM; } else - y = -32+(cardanim/2); + y = (-32*FRACUNIT) + (cardanim/2); if (r_splitscreen > 1) { @@ -4003,7 +4002,7 @@ static void K_drawBattleFullscreen(void) else if (stplyr->position == 1 && (!itembreaker || numtargets >= nummapboxes)) p = kp_battlewin; - V_DrawFixedPatch(x< 1) V_DrawString(x-txoff, ty, 0, va("%d", stplyr->karmadelay/TICRATE));