]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix two nasty bugs in the scoreboard
authorFruitieX <rasse@rasse-lappy.localdomain>
Wed, 21 Jul 2010 12:53:57 +0000 (15:53 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Wed, 21 Jul 2010 12:53:57 +0000 (15:53 +0300)
qcsrc/client/scoreboard.qc

index 5508cb5e1824f9cbbafea1c8b78dc02bd61e57c6..d0f5365cfa30ae09a597c402626bea7272fe61e8 100644 (file)
@@ -297,6 +297,7 @@ void Cmd_HUD_SetFields(float argc)
        hud_num_fields = 0;
 
        drawfont = hud_font;
+       hud_fontsize = HUD_GetFontsize("hud_fontsize"); 
 
        for(i = 0; i < argc - 1; ++i)
        {
@@ -831,7 +832,7 @@ vector HUD_Scoreboard_MakeTable(vector pos, entity tm, vector rgb, vector bg_siz
                        }
 
                        tmp_x = stringwidth(hud_title[i], FALSE, hud_fontsize);
-                       tmp_x = (hud_size[i] - tmp_x) * hud_fontsize_x;
+                       tmp_x = (hud_size[i] - tmp_x);
                        drawstring(pos + tmp, hud_title[i], hud_fontsize, rgb * 1.5, scoreboard_alpha_fg, DRAWFLAG_NORMAL);
                        pos_x -= hud_fontsize_x;
                }