From 8bfe6c8aa1c47a5adf70287ebfc8bcc5f98a1f24 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 14 Jul 2015 14:26:13 +0200 Subject: [PATCH] Reduce too big map images when there are very few choices Signed-off-by: terencehill --- qcsrc/client/mapvoting.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 79cff99e3..395f70f13 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -389,6 +389,9 @@ void MapVote_Draw() { tsize = dist.x - 10; isize = min(dist.y - 10, 0.75 * tsize); + float maxheight = (ymax - pos.y) / 1.5; + if (isize > maxheight) + isize = maxheight; } mv_selection = MapVote_Selection(pos, dist, rows, mv_columns); -- 2.39.2