Keep vote running until everyone presses f3 or time runs out

Gives enough time for mods to react and for players to save
This commit is contained in:
Dennis Felsing 2018-01-10 14:33:01 +01:00
parent 94e43509cc
commit ea85e0669a

View file

@ -766,9 +766,7 @@ void CGameContext::OnTick()
(m_VoteKick || m_VoteSpec)) (m_VoteKick || m_VoteSpec))
Total = g_Config.m_SvVoteMaxTotal; Total = g_Config.m_SvVoteMaxTotal;
if((Yes > Total / (100.0 / g_Config.m_SvVoteYesPercentage)) && !Veto) if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
m_VoteEnforce = VOTE_ENFORCE_YES;
else if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
m_VoteEnforce = VOTE_ENFORCE_NO; m_VoteEnforce = VOTE_ENFORCE_NO;
if(VetoStop) if(VetoStop)