]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/panel/vote.qc
Fix vote panel test
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / panel / vote.qc
index 7614eefcc0dbe71c465c71852f7fc21cd3a19680..1c2ea03bc8ec3a11708c7921a976855b6e4ee9fb 100644 (file)
@@ -33,6 +33,12 @@ void HUD_Vote()
        if(!autocvar__hud_configure)
        {
                if(!autocvar_hud_panel_vote) return;
+               /*
+               if(cvar("hud_panel_vote_test")) {
+                       if(vote_called_vote) strunzone(vote_called_vote); vote_called_vote = strzone("^1test the vote panel");
+                       vote_active = true; vote_yescount = 3; vote_nocount = 2; vote_needed = 4;
+               } else vote_active = false;
+               */
        }
        else
        {
@@ -48,13 +54,6 @@ void HUD_Vote()
                vote_prev = vote_active;
        }
 
-       /*
-       if(cvar("hud_panel_vote_test")) {
-               if(vote_called_vote) strunzone(vote_called_vote); vote_called_vote = strzone("^1test the vote panel");
-               vote_active = true; vote_yescount = 3; vote_nocount = 2; vote_needed = 4;
-       } else vote_active = false;
-       */
-
        if(vote_active || autocvar__hud_configure)
                vote_alpha = bound(0, (time - vote_change) * 2, 1);
        else