mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Send all votes to ddnet clients
This commit is contained in:
parent
6af20de3e8
commit
f5cab53aa4
|
@ -408,7 +408,8 @@ void CGameContext::SendVoteSet(int ClientID)
|
|||
|
||||
void CGameContext::SendVoteStatus(int ClientID, int Total, int Yes, int No)
|
||||
{
|
||||
if (Total > VANILLA_MAX_CLIENTS)
|
||||
CServer* pServ = (CServer*)Server();
|
||||
if (Total > VANILLA_MAX_CLIENTS && !pServ->m_aClients[ClientID].m_CustClt)
|
||||
{
|
||||
Yes = float(Yes) * VANILLA_MAX_CLIENTS / float(Total);
|
||||
No = float(No) * VANILLA_MAX_CLIENTS / float(Total);
|
||||
|
|
Loading…
Reference in a new issue