Remove item invalidation logging for unknown UUIDs

This caused lags due to too much output during gameplay, demo playback
and demo cutting.

Fixes #1643.
This commit is contained in:
heinrich5991 2019-06-04 00:05:28 +02:00
parent f3b1135770
commit 756aab339b

View file

@ -970,7 +970,7 @@ void CGameClient::OnNewSnapshot()
void *pData = Client()->SnapGetItem(IClient::SNAP_CURRENT, Index, &Item);
if(m_NetObjHandler.ValidateObj(Item.m_Type, pData, Item.m_DataSize) != 0)
{
if(g_Config.m_Debug)
if(g_Config.m_Debug && Item.m_Type != UUID_UNKNOWN)
{
char aBuf[256];
str_format(aBuf, sizeof(aBuf), "invalidated index=%d type=%d (%s) size=%d id=%d", Index, Item.m_Type, m_NetObjHandler.GetObjName(Item.m_Type), Item.m_DataSize, Item.m_ID);