From: LegendaryGuard Date: Sat, 19 Jun 2021 16:35:04 +0000 (+0200) Subject: Little fix in country label X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42ea2fbc4895c1578cafc063ac0f915e3d98b089;p=xonotic%2Fxonotic-data.pk3dir.git Little fix in country label --- 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;