fix sv_vote_gametype_default_current to match description 774/head
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 ceb2cdd..acac831 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;