From: Mario Date: Sun, 19 Jan 2014 17:15:21 +0000 (+1100) Subject: Fix vyes not working with sv_vote_change enabled X-Git-Tag: xonotic-v0.8.0~238^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4dc5c0092df1a324d0f6f8ab90780199fc2a934b;p=xonotic%2Fxonotic-data.pk3dir.git Fix vyes not working with sv_vote_change enabled --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index e0016b250..f92a0a40c 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -1013,7 +1013,7 @@ void VoteCommand_yes(float request, entity caller) // CLIENT ONLY case CMD_REQUEST_COMMAND: { if (!vote_called) { print_to(caller, "^1No vote called."); } - else if(caller.vote_selection != VOTE_SELECT_NULL && autocvar_sv_vote_change) { print_to(caller, "^1You have already voted."); } + else if(caller.vote_selection != VOTE_SELECT_NULL && !autocvar_sv_vote_change) { print_to(caller, "^1You have already voted."); } else // everything went okay, continue changing vote {