mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge branch 'master' of http://github.com/heinrich5991/DDRace
This commit is contained in:
commit
a3d29d5447
|
@ -534,9 +534,9 @@ void CGameContext::OnTick()
|
|||
No++;
|
||||
}
|
||||
|
||||
if(Yes >= (Total/(100/g_Config.m_SvVotePercentage)))
|
||||
if(Yes > Total / (100.0 / g_Config.m_SvVotePercentage))
|
||||
m_VoteEnforce = VOTE_ENFORCE_YES;
|
||||
else if(No >= (int)((Total+1)/((1.0/g_Config.m_SvVotePercentage)*100.0)))
|
||||
else if(No >= Total - Total / (100.0 / g_Config.m_SvVotePercentage))
|
||||
m_VoteEnforce = VOTE_ENFORCE_NO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue