]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix vote panel test
authorterencehill <piuntn@gmail.com>
Fri, 19 Aug 2016 14:01:16 +0000 (16:01 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 19 Aug 2016 14:01:16 +0000 (16:01 +0200)
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