From: terencehill Date: Tue, 6 Apr 2021 17:21:32 +0000 (+0200) Subject: Fix #2548 "FPS field is displayed (but empty) in the scoreboard with sv_showfps disabled" X-Git-Tag: xonotic-v0.8.5~463 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=41000105ee0ad7adcf40c776ca1159e9070bafa9;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2548 "FPS field is displayed (but empty) in the scoreboard with sv_showfps disabled" --- 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)