From 4db9773488a48e1800ca32972ca43f5d8a90fe3f Mon Sep 17 00:00:00 2001 From: Ashnal Date: Tue, 29 Apr 2025 22:23:22 -0400 Subject: [PATCH] Fix numlaps 0 crash Doesn't award exp proper on crossing position line but at least it doesnt crash --- src/k_kart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index b03b4c9c8..147b32159 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -15500,7 +15500,7 @@ UINT16 K_GetDisplayEXP(player_t *player) // target is where you should be if you're doing good and at a 1.0 mult fixed_t clampedexp = max(FRACUNIT/2, min(FRACUNIT*5/4, player->exp)); // clamp between 0.5 and 1.25 - fixed_t targetdisplayexp = (TARGETDISPLAYEXP*player->gradingpointnum/numgradingpoints)<gradingpointnum/max(1,numgradingpoints))<>FRACBITS; return displayexp;