From 8f30e696325ec85edc4bcfc52b27731d2a28871d Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 5 Aug 2016 22:39:20 +0200 Subject: [PATCH] Fix bad player name truncation position in the relative cell of the scoreboard --- qcsrc/client/hud/panel/scoreboard.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 34761ad89..711e236fd 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -716,14 +716,14 @@ string Scoreboard_FixColumnWidth(int i, string str) sbt_field_size[i] = namesize; if (sbt_fixcolumnwidth_iconlen != 0) - namesize -= sbt_fixcolumnwidth_marginlen + sbt_fixcolumnwidth_iconlen; + namesize -= sbt_fixcolumnwidth_marginlen + sbt_fixcolumnwidth_iconlen * hud_fontsize.x; str = textShortenToWidth(str, namesize, hud_fontsize, stringwidth_colors); sbt_fixcolumnwidth_len = stringwidth(str, true, hud_fontsize); } else sbt_fixcolumnwidth_len = stringwidth(str, false, hud_fontsize); - f = sbt_fixcolumnwidth_len + sbt_fixcolumnwidth_marginlen + sbt_fixcolumnwidth_iconlen; + f = sbt_fixcolumnwidth_len + sbt_fixcolumnwidth_marginlen + sbt_fixcolumnwidth_iconlen * hud_fontsize.x; if(sbt_field_size[i] < f) sbt_field_size[i] = f; -- 2.39.2