]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
vote master: use normal vno behaviour instead of cancelling the vote
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 2 May 2025 18:59:06 +0000 (04:59 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 3 May 2025 08:25:10 +0000 (18:25 +1000)
The vstop command already exists for cancelling votes.

qcsrc/server/command/vote.qc

index e2df71b7ffa1eb175104eff3518e1b7422b44e9b..8ec7e9f6d64a56f81b69f2d6310dba6778a45d9c 100644 (file)
@@ -1200,7 +1200,7 @@ void VoteCommand_no(int request, entity caller)  // CLIENT ONLY
                        {
                                print_to(caller, "^1You have already voted.");
                        }
-                       else if (((caller == vote_caller) || caller.vote_master) && autocvar_sv_vote_no_stops_vote)
+                       else if (caller == vote_caller && autocvar_sv_vote_no_stops_vote)
                        {
                                VoteStop(caller, true);
                        }