Fix #2175 "Gametype voting screen broken at connect"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mapvoting.qc
index 37cb59e082101f645ac197f6c224c12715f62bfd..5de11a3b856ca1f3648509a09cfdb38a14fe71f1 100644 (file)
@@ -359,6 +359,11 @@ void MapVote_Draw()
                ymax -= chat_sizey;
 
        hud_fontsize = HUD_GetFontsize("hud_fontsize");
+       if (gametypevote)
+       {
+               gtv_text_size = hud_fontsize * 1.4;
+               gtv_text_size_small = hud_fontsize * 1.1;
+       }
 
        pos.y = ymin;
        pos.z = 0;
@@ -680,9 +685,6 @@ void MapVote_Init()
                mapvote_chosenmap = strzone(ReadString());
                if ( gametypevote == 2 )
                        gametypevote = 0;
-
-               gtv_text_size = hud_fontsize*1.4;
-               gtv_text_size_small = hud_fontsize*1.1;
        }
 
        MapVote_ReadMask();