mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +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();
|
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);
|
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;
|
Total = VANILLA_MAX_CLIENTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue