]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Gametype vote screen: fix border thickness not correctly applied
authorterencehill <piuntn@gmail.com>
Sun, 26 Jul 2015 17:42:17 +0000 (19:42 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 26 Jul 2015 17:42:49 +0000 (19:42 +0200)
qcsrc/client/mapvoting.qc

index bded051f43fa7d563b5f3f3d7eb7b523f547c3e2..fc872056a7178c086af2ca5a51703eccb9f48d24 100644 (file)
@@ -90,10 +90,10 @@ void GameTypeVote_DrawGameTypeItem(vector pos, float maxh, float tsize, string g
        // Bounding box details
        float rect_margin = hud_fontsize.y / 2;
 
-       pos.x += rect_margin;
-       pos.y += rect_margin;
-       maxh -= 2 * rect_margin;
-       tsize -= 2 * rect_margin;
+       pos.x += rect_margin + autocvar_scoreboard_border_thickness;
+       pos.y += rect_margin + autocvar_scoreboard_border_thickness;
+       maxh -= 2 * (rect_margin + autocvar_scoreboard_border_thickness);
+       tsize -= 2 * (rect_margin + autocvar_scoreboard_border_thickness);
 
        vector rect_pos = pos - '0.5 0.5 0' * rect_margin;
        vector rect_size = '1 1 0';