Skip to content

Commit bd5c921

Browse files
committed
Fix rounding of score in pro chest message
1 parent 955bb28 commit bd5c921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mods/ctf/ctf_modebase/features.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ return {
699699
"5 captures, and at least 8,000 score to access the pro section."
700700
if rank then
701701
local captures_needed = math.max(0, 5 - (rank.flag_captures or 0))
702-
local score_needed = math.max(math.max(0, 8000 - (rank.score or 0)))
702+
local score_needed = math.floor(math.max(0, 8000 - (rank.score or 0)))
703703
local current_kd = math.floor((rank.kills or 0) / (rank.deaths or 1) * 10)
704704
current_kd = current_kd / 10
705705
deny_pro = deny_pro .. " You still need " .. captures_needed

0 commit comments

Comments
 (0)