From: terencehill Date: Thu, 8 Sep 2016 20:48:50 +0000 (+0200) Subject: Fix scoreboard layout when changing hud_fontsize X-Git-Tag: xonotic-v0.8.2~600^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c19d214d05799fb77af065d8129b6555b40a0f76;p=xonotic%2Fxonotic-data.pk3dir.git Fix scoreboard layout when changing hud_fontsize --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 58e962e0d..5e48bc371 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -756,7 +756,10 @@ string Scoreboard_FixColumnWidth(int i, string str) void Scoreboard_initFieldSizes() { for(int i = 0; i < sbt_num_fields; ++i) + { + sbt_field_size[i] = stringwidth(sbt_field_title[i], false, hud_fontsize); Scoreboard_FixColumnWidth(i, ""); + } } vector Scoreboard_DrawHeader(vector pos, vector rgb, bool other_players)