]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Decrease a bit cell ar
authorterencehill <piuntn@gmail.com>
Thu, 16 Jul 2015 13:52:02 +0000 (15:52 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 26 Jul 2015 09:46:48 +0000 (11:46 +0200)
Signed-off-by: terencehill <piuntn@gmail.com>
qcsrc/client/mapvoting.qc

index 1350b154e0af83685247cd484140f8c217456084..05b01c5c137023d79f3f1c11e96c0028bb25079a 100644 (file)
@@ -374,8 +374,8 @@ void MapVote_Draw()
        if(mv_abstain)
                mv_num_maps -= 1;
 
-       // for mapvote it would be better 4/3 but map name needs more horizzontal space
-       int item_aspect = (gametypevote) ? 3/1 : 2/1;
+       // 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);
        mv_columns = table_size.x;
        rows = table_size.y;