]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix highlighting of the last column
authorterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 22:00:29 +0000 (00:00 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 18 Aug 2016 22:00:29 +0000 (00:00 +0200)
qcsrc/client/hud/panel/scoreboard.qc

index f6584e3041c3ad8c03d3fced41a1d42f1bdd24c1..9762384faa0d68aca8ae04dc0bee7ff413717a26 100644 (file)
@@ -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);
                                }