]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
A fix for voting during map change sometimes causing everyone to be kicked
authorMario <mario.mario@y7mail.com>
Fri, 21 Dec 2012 07:24:12 +0000 (18:24 +1100)
committerMario <mario.mario@y7mail.com>
Fri, 21 Dec 2012 07:24:12 +0000 (18:24 +1100)
qcsrc/server/command/vote.qc

index e4564753008b889303ab4992bb4afbfd2f71edbd..767b2358b2926dd78affa38c7e460fe0f29a0456 100644 (file)
@@ -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."); }