mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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))
|
||||
Total = g_Config.m_SvVoteMaxTotal;
|
||||
|
||||
if((Yes > Total / (100.0 / g_Config.m_SvVoteYesPercentage)) && !Veto)
|
||||
m_VoteEnforce = VOTE_ENFORCE_YES;
|
||||
else if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
|
||||
if(No >= Total - Total / (100.0 / g_Config.m_SvVoteYesPercentage))
|
||||
m_VoteEnforce = VOTE_ENFORCE_NO;
|
||||
|
||||
if(VetoStop)
|
||||
|
|
Loading…
Reference in a new issue