]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix scoreboard field widths when translated
authorRudolf Polzer <divverent@alientrap.org>
Wed, 20 Apr 2011 14:03:06 +0000 (16:03 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 20 Apr 2011 14:03:06 +0000 (16:03 +0200)
qcsrc/client/scoreboard.qc

index 517065ac5dd02fade24a500103bdb580dc09e26e..db3d9e06d72b2537dba58cdf6882c2637a47c6de 100644 (file)
@@ -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") {