]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix vote yes to stop it from spamming nonsense :P
authorSamual <samual@xonotic.org>
Tue, 27 Dec 2011 15:55:54 +0000 (10:55 -0500)
committerSamual <samual@xonotic.org>
Tue, 27 Dec 2011 15:55:54 +0000 (10:55 -0500)
qcsrc/server/command/vote.qc

index b9ecd1de5f4b0318b6c42ea7e2d62e119873a3dd..69aa2f68684d652f2884a4c1fcc4b390fddf80a6 100644 (file)
@@ -842,7 +842,7 @@ void VoteCommand_yes(float request, entity caller) // CLIENT ONLY
                case CMD_REQUEST_COMMAND:
                {
                        if not(vote_called) { print_to(caller, "^1No vote called."); }
-                       if not(caller.vote_selection == VOTE_SELECT_NULL || autocvar_sv_vote_change) { print_to(caller, "^1You have already voted."); }
+                       else if not(caller.vote_selection == VOTE_SELECT_NULL || autocvar_sv_vote_change) { print_to(caller, "^1You have already voted."); }
                        
                        else // everything went okay, continue changing vote
                        {