From 5006514de8b4c3c4f95358378a845b941b7fb0f7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 26 Jul 2015 19:42:17 +0200 Subject: [PATCH] Gametype vote screen: fix border thickness not correctly applied --- qcsrc/client/mapvoting.qc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index bded051f4..fc872056a 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -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'; -- 2.39.2