From: terencehill Date: Tue, 14 Jul 2015 12:26:13 +0000 (+0200) Subject: Reduce too big map images when there are very few choices X-Git-Tag: xonotic-v0.8.1~22^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8bfe6c8aa1c47a5adf70287ebfc8bcc5f98a1f24;p=xonotic%2Fxonotic-data.pk3dir.git Reduce too big map images when there are very few choices Signed-off-by: terencehill --- 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);