From b56d9a14e9b9f8df7c643ac25ce80606d15b5e5d Mon Sep 17 00:00:00 2001 From: otta8634 Date: Mon, 10 Feb 2025 15:31:31 +0800 Subject: [PATCH] Hide leadlimit on scoreboard if more than fraglimit With a frag limit less than the lead limit, the lead limit can never be achieved, so displaying it is redundant. Made it not show in such cases. --- qcsrc/client/hud/panel/scoreboard.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index c5f1a2987..6ab7fc830 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -2478,7 +2478,7 @@ void Scoreboard_Draw() str = strcat(str, "^7 / "); // delimiter str = strcat(str, Scoreboard_Fraglimit_Draw(fl, false)); } - if(ll > 0) + if(ll > 0 && (ll < fl || fl <= 0)) { if(tl > 0 || fl > 0) { -- 2.39.5