Fix vote window

This commit is contained in:
def 2014-01-03 13:51:18 +01:00
parent edf45538d1
commit bdc14849f7

View file

@ -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;
} }