From: terencehill Date: Fri, 19 Aug 2016 14:01:16 +0000 (+0200) Subject: Fix vote panel test X-Git-Tag: xonotic-v0.8.2~674^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=770f0422474a35fece0aecfd4efd63f8a4581720;p=xonotic%2Fxonotic-data.pk3dir.git Fix vote panel test --- diff --git a/qcsrc/client/hud/panel/vote.qc b/qcsrc/client/hud/panel/vote.qc index 7614eefcc..1c2ea03bc 100644 --- a/qcsrc/client/hud/panel/vote.qc +++ b/qcsrc/client/hud/panel/vote.qc @@ -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