mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge branch 'DDRace64' of github.com:def-/teeworlds into DDRace64
This commit is contained in:
commit
2bd4c1dde4
|
@ -408,12 +408,10 @@ void CGameContext::SendVoteSet(int ClientID)
|
|||
|
||||
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