From 719923e0cf398b02ecdff3d956d88799422ed264 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Mon, 27 Oct 2025 00:20:22 +0000 Subject: [PATCH] Fixes grading for 0 EXP finishes --- src/k_tally.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/k_tally.cpp b/src/k_tally.cpp index 8e462551b..f3f59518d 100644 --- a/src/k_tally.cpp +++ b/src/k_tally.cpp @@ -345,13 +345,10 @@ void level_tally_t::Init(player_t *player) } } - if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT) + if ((gametypes[gt]->rules & GTR_CIRCUIT) == GTR_CIRCUIT && K_GetNumGradingPoints() > 0) // EXP should be a rule type, but here we are { - if (player->exp) - { - exp = player->exp; - totalExp = EXP_TARGET; - } + exp = static_cast(std::max(player->exp, 0)); // The scoring calc doesn't subtract anymore, so using 0 is okay and will not wrap + totalExp = EXP_TARGET; } if (battleprisons)