X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmapvoting.qc;fp=qcsrc%2Fclient%2Fmapvoting.qc;h=9e783d306237b8dd49c27872c1b1cdd44098f17f;hb=fdbfb6f9364d8aeae67e108400a6bd1dd37dc0b7;hp=7b07b680057196bb325bda90f4d4dd03fd8866a3;hpb=0f2e3cd6c6554bda254111dee0746fea05aac047;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/mapvoting.qc b/qcsrc/client/mapvoting.qc index 7b07b6800..9e783d306 100644 --- a/qcsrc/client/mapvoting.qc +++ b/qcsrc/client/mapvoting.qc @@ -1,5 +1,8 @@ #include "mapvoting.qh" +#include "autocvars.qh" +#include "miscfunctions.qh" +#include "defs.qh" #include "hud/_mod.qh" #include "hud/panel/scoreboard.qh" @@ -398,7 +401,7 @@ void MapVote_Draw() // higher than the image itself ratio for mapvote items to reserve space for long map names int item_aspect = (gametypevote) ? 3/1 : 5/3; - vector table_size = HUD_GetTableSize_BestItemAR(mv_num_maps, eX * (xmax - xmin) + eY * (ymax - ymin), item_aspect); + vector table_size = HUD_GetTableSize_BestItemAR(mv_num_maps, vec2(xmax - xmin, ymax - ymin), item_aspect); mv_columns = table_size.x; rows = table_size.y;