From: Mario Date: Fri, 21 Dec 2012 07:24:12 +0000 (+1100) Subject: A fix for voting during map change sometimes causing everyone to be kicked X-Git-Tag: xonotic-v0.7.0~155^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=273ba616da7590f2419ee2bd249165f6097e9a58;p=xonotic%2Fxonotic-data.pk3dir.git A fix for voting during map change sometimes causing everyone to be kicked --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index e45647530..767b2358b 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -694,6 +694,7 @@ void VoteCommand_call(float request, entity caller, float argc, string vote_comm vote_command = VoteCommand_extractcommand(vote_command, 2, argc); if not(autocvar_sv_vote_call || !caller) { print_to(caller, "^1Vote calling is not allowed."); } + else if(time < game_starttime) { print_to(caller, "^1Voting is not allowed before the match has started."); } else if(vote_called) { print_to(caller, "^1There is already a vote called."); } else if(!spectators_allowed && (caller && (caller.classname != "player"))) { print_to(caller, "^1Only players can call a vote."); } else if(timeout_status) { print_to(caller, "^1You can not call a vote while a timeout is active."); }