mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Vote faster when all press yes
This commit is contained in:
parent
37b7f058b2
commit
e29de3295f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue