From: Samual Date: Sat, 24 Dec 2011 16:27:13 +0000 (-0500) Subject: Don't check if it's the server console, it MUST be the client *anyway* X-Git-Tag: xonotic-v0.6.0~188^2~28^2~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9c79ffa77e3b07fa7e3c70b88e6e605f100ce4b6;p=xonotic%2Fxonotic-data.pk3dir.git Don't check if it's the server console, it MUST be the client *anyway* --- 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 {