]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix vyes not working with sv_vote_change enabled
authorMario <mario.mario@y7mail.com>
Sun, 19 Jan 2014 17:15:21 +0000 (04:15 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 19 Jan 2014 17:15:21 +0000 (04:15 +1100)
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
                        {