Merge branch 'DDRace64' of github.com:def-/teeworlds into DDRace64

This commit is contained in:
def 2014-01-05 23:29:30 +01:00
commit 2bd4c1dde4

View file

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