From: Rudolf Polzer Date: Wed, 20 Apr 2011 14:03:06 +0000 (+0200) Subject: fix scoreboard field widths when translated X-Git-Tag: xonotic-v0.5.0~109^2~21^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c8b8958cefebc42706aa9baa2cfdecf4196a77b4;p=xonotic%2Fxonotic-data.pk3dir.git fix scoreboard field widths when translated --- diff --git a/qcsrc/client/scoreboard.qc b/qcsrc/client/scoreboard.qc index 517065ac5..db3d9e06d 100644 --- a/qcsrc/client/scoreboard.qc +++ b/qcsrc/client/scoreboard.qc @@ -365,7 +365,7 @@ void Cmd_HUD_SetFields(float argc) strunzone(hud_title[hud_num_fields]); hud_title[hud_num_fields] = strzone(TranslateScoresLabel(str)); - hud_size[hud_num_fields] = stringwidth(str, FALSE, hud_fontsize); + hud_size[hud_num_fields] = stringwidth(hud_title[hud_num_fields], FALSE, hud_fontsize); str = strtolower(str); if(str == "ping") {