From 41000105ee0ad7adcf40c776ca1159e9070bafa9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 6 Apr 2021 19:21:32 +0200 Subject: [PATCH] Fix #2548 "FPS field is displayed (but empty) in the scoreboard with sv_showfps disabled" --- qcsrc/client/hud/panel/scoreboard.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 39deff0d1..6f41ae9ee 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -463,9 +463,12 @@ void Cmd_Scoreboard_SetFields(int argc) continue; } + str = strtolower(str); + if(!STAT(SHOWFPS) && str == "fps") + continue; + strcpy(sbt_field_title[sbt_num_fields], TranslateScoresLabel(str)); sbt_field_size[sbt_num_fields] = stringwidth(sbt_field_title[sbt_num_fields], false, hud_fontsize); - str = strtolower(str); PlayerScoreField j; switch(str) -- 2.39.2