]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin/Mario/vote_change_fix'
authorSamual Lenks <samual@xonotic.org>
Mon, 20 Jan 2014 19:30:05 +0000 (14:30 -0500)
committerSamual Lenks <samual@xonotic.org>
Mon, 20 Jan 2014 19:30:05 +0000 (14:30 -0500)
# By Mario
# Via Mario
* origin/Mario/vote_change_fix:
  Fix vyes not working with sv_vote_change enabled

qcsrc/server/command/vote.qc

index e0016b25018f67b523adb617ccf6d7296fc6a4ad..f92a0a40cd37a140df63da39f7aa1d0a73b00c0e 100644 (file)
@@ -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
                        {