From ed4e7ede342d4eefc1e249abd073af804b2a3bdf Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Tue, 6 Apr 2021 22:52:49 +0200 Subject: [PATCH] Added code from master branch (from Fix #2548) --- qcsrc/client/hud/panel/scoreboard.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 8a346c096..5848fc873 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -482,9 +482,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) @@ -1264,7 +1267,7 @@ void Scoreboard_Duel_DrawTable(vector pos, bool invert, entity pl, entity tm) tmp_in.y += (duel_name_fontsize.y - hud_fontsize.y) / 2; drawpic(tmp_in, sbt_field_icon0, vec2(hud_fontsize.x * sbt_fixcolumnwidth_iconlen, hud_fontsize.y), sbt_field_icon1_rgb, panel_fg_alpha, DRAWFLAG_NORMAL); } - + //LegendGuard adds a conditional sentence for country column 05-04-2021 // Player country icon/flag if(sbt_field_icon3 != "") { -- 2.39.2