X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmapvoting.qc;h=9e783d306237b8dd49c27872c1b1cdd44098f17f;hb=3e88d2beabfecae91c21f9ffb87a32685f3df370;hp=7b07b680057196bb325bda90f4d4dd03fd8866a3;hpb=8c965aa90470cfa8cbfaff88db71b6b5899a90ce;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;