From 9c79ffa77e3b07fa7e3c70b88e6e605f100ce4b6 Mon Sep 17 00:00:00 2001 From: Samual Date: Sat, 24 Dec 2011 11:27:13 -0500 Subject: [PATCH] Don't check if it's the server console, it MUST be the client *anyway* --- qcsrc/server/command/vote.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index b05ee3d27..f5c7f0ccb 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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 { -- 2.39.2