]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix initial scoreboard size when nobody is playing yet
authorterencehill <piuntn@gmail.com>
Tue, 30 Aug 2016 23:27:10 +0000 (01:27 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 30 Aug 2016 23:27:10 +0000 (01:27 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index 21424dd23c719b971e1452b3b71d6935002d86c8..d85bab8497a377f6cd3dfbe52c1f4487e5acc4dc 100644 (file)
@@ -758,7 +758,7 @@ 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)