From c76c360fbe6bf0f9803e6f62be042fb26c1e9853 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Sun, 26 Nov 2023 19:41:49 -0800 Subject: [PATCH] Fix rounding of score in pro chest message --- mods/ctf/ctf_modebase/features.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_modebase/features.lua b/mods/ctf/ctf_modebase/features.lua index 570eedce14..36b3cd4115 100644 --- a/mods/ctf/ctf_modebase/features.lua +++ b/mods/ctf/ctf_modebase/features.lua @@ -699,7 +699,7 @@ return { "5 captures, and at least 8,000 score to access the pro section." if rank then local captures_needed = math.max(0, 5 - (rank.flag_captures or 0)) - local score_needed = math.max(0, 8000 - (rank.score or 0)) + local score_needed = math.max(math.max(0, 8000 - (rank.score or 0))) local current_kd = math.floor((rank.kills or 0) / (rank.deaths or 1) * 10) current_kd = current_kd / 10 deny_pro = deny_pro .. " You still need " .. captures_needed