From: FruitieX Date: Wed, 21 Jul 2010 12:53:57 +0000 (+0300) Subject: fix two nasty bugs in the scoreboard X-Git-Tag: xonotic-v0.1.0preview~362^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af309aac1b49e1853bdf5e8ce625dbf51955fbea;p=xonotic%2Fxonotic-data.pk3dir.git fix two nasty bugs in the scoreboard --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 5508cb5e1..d0f5365cf 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -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; }