From 840a3cad2a75d127e89dcaf3b2fa9146090240d3 Mon Sep 17 00:00:00 2001
From: Martin Taibr <taibr.martin@gmail.com>
Date: Sat, 15 Feb 2020 19:07:50 +0100
Subject: [PATCH] fix sv_vote_gametype_default_current to match description

it used to always pick current mode if there was a tie
---
 qcsrc/server/mapvoting.qc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.39.5