From 273ba616da7590f2419ee2bd249165f6097e9a58 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 21 Dec 2012 18:24:12 +1100 Subject: [PATCH] A fix for voting during map change sometimes causing everyone to be kicked --- qcsrc/server/command/vote.qc | 1 + 1 file changed, 1 insertion(+) 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."); } -- 2.39.2