From: Samual Date: Tue, 27 Dec 2011 15:55:54 +0000 (-0500) Subject: Fix vote yes to stop it from spamming nonsense :P X-Git-Tag: xonotic-v0.6.0~188^2~28^2~58 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b595061f18c195a44458acc4c7c293840638c34c;p=xonotic%2Fxonotic-data.pk3dir.git Fix vote yes to stop it from spamming nonsense :P --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index b9ecd1de5..69aa2f686 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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 {