From: terencehill Date: Thu, 18 Aug 2016 22:00:29 +0000 (+0200) Subject: Fix highlighting of the last column X-Git-Tag: xonotic-v0.8.2~702 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d98bbd9428490da52da414ab39932321cacc3254;p=xonotic%2Fxonotic-data.pk3dir.git Fix highlighting of the last column --- diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index f6584e304..9762384fa 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -786,10 +786,7 @@ vector Scoreboard_DrawHeader(vector pos, vector rgb) if (sbt_highlight) if (!(i % 2)) { - if (i == sbt_num_fields-1) - column_dim.x = sbt_field_size[i] + hud_fontsize.x * 0.5; - else - column_dim.x = sbt_field_size[i] + hud_fontsize.x; + column_dim.x = sbt_field_size[i] + hud_fontsize.x; drawfill(pos - eX * hud_fontsize.x * 0.5, column_dim, '0 0 0', sbt_highlight_alpha, DRAWFLAG_NORMAL); }