]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't check if it's the server console, it MUST be the client *anyway*
authorSamual <samual@xonotic.org>
Sat, 24 Dec 2011 16:27:13 +0000 (11:27 -0500)
committerSamual <samual@xonotic.org>
Sat, 24 Dec 2011 16:27:13 +0000 (11:27 -0500)
qcsrc/server/command/vote.qc

index b05ee3d27b97e02b699ebf00df4c7b07fde9a9a1..f5c7f0ccb75da68c6dfcb616aebaf0e906f4bd23 100644 (file)
@@ -765,7 +765,7 @@ void VoteCommand_no(float request, entity caller) // CLIENT ONLY
                {
                        if not(vote_called) { print_to(caller, "^1No vote called."); }
                        else if not(caller.vote_selection == VOTE_SELECT_NULL || autocvar_sv_vote_change) { print_to(caller, "^1You have already voted."); }
-                       else if(((caller == vote_caller) || !caller || caller.vote_master) && autocvar_sv_vote_no_stops_vote) { VoteStop(caller); }
+                       else if(((caller == vote_caller) || caller.vote_master) && autocvar_sv_vote_no_stops_vote) { VoteStop(caller); }
                        
                        else // everything went okay, continue changing vote
                        {