From 42ea2fbc4895c1578cafc063ac0f915e3d98b089 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sat, 19 Jun 2021 18:35:04 +0200 Subject: [PATCH] Little fix in country label --- qcsrc/client/hud/panel/scoreboard.qc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index a4b26e47e..ffc58f40a 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -717,11 +717,6 @@ string Scoreboard_GetField(entity pl, PlayerScoreField field) str = Scoreboard_GetCountrycode(pl); return str; - //LegendGuard adds Country REGISTER in the switch 05-04-2021 - case SP_COUNTRY: - str = Scoreboard_GetCountrycode(pl); - return str; - case SP_NAME: str = Scoreboard_GetName(pl); if (autocvar_hud_panel_scoreboard_playerid) @@ -1247,7 +1242,7 @@ void Scoreboard_Duel_DrawTable(vector pos, bool invert, entity pl, entity tm) //LegendGuard adds a conditional sentence for country column 05-04-2021 // Player country icon/flag - Scoreboard_GetField(pl, SP_COUNTRY); + tmp_str = Scoreboard_GetField(pl, SP_COUNTRY); if(sbt_field_icon3 != "") { vector rsz = draw_getimagesize(sbt_field_icon3); sbt_fixcolumnwidth_iconlen = rsz.x / rsz.y; -- 2.39.2