mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix vote window
This commit is contained in:
parent
edf45538d1
commit
bdc14849f7
|
@ -410,10 +410,10 @@ void CGameContext::SendVoteStatus(int ClientID, int Total, int Yes, int No)
|
|||
{
|
||||
CServer* pServ = (CServer*)Server();
|
||||
|
||||
if (!pServ->m_aClients[ClientID].m_CustClt && Total > VANILLA_MAX_CLIENTS)
|
||||
if (Total > VANILLA_MAX_CLIENTS)
|
||||
{
|
||||
Yes = float(Yes) * VANILLA_MAX_CLIENTS / float(Total);
|
||||
No = float(Yes) * VANILLA_MAX_CLIENTS / float(Total);
|
||||
No = float(No) * VANILLA_MAX_CLIENTS / float(Total);
|
||||
Total = VANILLA_MAX_CLIENTS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue