Fix start info spam protection

This commit is contained in:
def 2015-05-19 17:47:41 +02:00
parent 987723316a
commit 0f5a4f8428

View file

@ -1593,6 +1593,8 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
{
//if(pPlayer->m_IsReady)
// return;
if(g_Config.m_SvSpamprotection && pPlayer->m_LastChangeInfo && pPlayer->m_LastChangeInfo+Server()->TickSpeed()*g_Config.m_SvInfoChangeDelay > Server()->Tick())
return;
CNetMsg_Cl_StartInfo *pMsg = (CNetMsg_Cl_StartInfo *)pRawMsg;
pPlayer->m_LastChangeInfo = Server()->Tick();