From: terencehill Date: Sun, 26 Jul 2015 17:42:17 +0000 (+0200) Subject: Gametype vote screen: fix border thickness not correctly applied X-Git-Tag: xonotic-v0.8.1~22^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5006514de8b4c3c4f95358378a845b941b7fb0f7;p=xonotic%2Fxonotic-data.pk3dir.git Gametype vote screen: fix border thickness not correctly applied --- 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';