]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix sv_vote_gametype_default_current to match description
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 15 Feb 2020 18:07:50 +0000 (19:07 +0100)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 15 Feb 2020 18:07:50 +0000 (19:07 +0100)
it used to always pick current mode if there was a tie

qcsrc/server/mapvoting.qc

index ceb2cdd07850a884875e4895d71f614e3de7867e..acac831d76a181940782c1b074d7b5e0ef0b3d61 100644 (file)
@@ -525,7 +525,7 @@ bool MapVote_CheckRules_2()
                        }
                }
        firstPlaceVotes = RandomSelection_best_priority;
-       if ( autocvar_sv_vote_gametype_default_current && currentVotes == firstPlaceVotes )
+       if ( autocvar_sv_vote_gametype_default_current && firstPlaceVotes == 0 )
                firstPlace = currentPlace;
        else
                firstPlace = RandomSelection_chosen_float;