mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
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:
parent
94e43509cc
commit
ea85e0669a
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue