From: Martin Taibr Date: Sat, 15 Feb 2020 18:07:50 +0000 (+0100) Subject: fix sv_vote_gametype_default_current to match description X-Git-Tag: xonotic-v0.8.5~1145^2~13^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=840a3cad2a75d127e89dcaf3b2fa9146090240d3;p=xonotic%2Fxonotic-data.pk3dir.git fix sv_vote_gametype_default_current to match description it used to always pick current mode if there was a tie --- diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index ceb2cdd07..acac831d7 100644 --- a/qcsrc/server/mapvoting.qc +++ b/qcsrc/server/mapvoting.qc @@ -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;