Vote faster when all press yes

This commit is contained in:
def 2018-01-10 23:46:14 +01:00
parent 37b7f058b2
commit e29de3295f

View file

@ -775,6 +775,9 @@ void CGameContext::OnTick()
m_VoteWillPass = Yes > (Yes + No) / (100.0 / g_Config.m_SvVoteYesPercentage);
}
if(Yes == Total)
m_VoteEnforce = VOTE_ENFORCE_YES;
if(time_get() > m_VoteCloseTime)
m_VoteEnforce = (m_VoteWillPass && !Veto) ? VOTE_ENFORCE_YES : VOTE_ENFORCE_NO;