diff --git a/src/engine/client.h b/src/engine/client.h index df9a5e4c3..fdc114baa 100644 --- a/src/engine/client.h +++ b/src/engine/client.h @@ -222,7 +222,6 @@ public: virtual void *SnapFindItem(int SnapID, int Type, int ID) const = 0; virtual void *SnapGetItem(int SnapID, int Index, CSnapItem *pItem) const = 0; virtual int SnapItemSize(int SnapID, int Index) const = 0; - virtual void SnapInvalidateItem(int SnapID, int Index) = 0; virtual void SnapSetStaticsize(int ItemType, int Size) = 0; diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index d49c9d51a..0dfb85816 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -995,20 +995,6 @@ int CClient::SnapItemSize(int SnapID, int Index) const return m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pAltSnap->GetItemSize(Index); } -void CClient::SnapInvalidateItem(int SnapID, int Index) -{ - dbg_assert(SnapID >= 0 && SnapID < NUM_SNAPSHOT_TYPES, "invalid SnapID"); - CSnapshotItem *pSnapshotItem = m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pAltSnap->GetItem(Index); - if(pSnapshotItem) - { - if((char *)pSnapshotItem < (char *)m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pAltSnap || (char *)pSnapshotItem > (char *)m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pAltSnap + m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_AltSnapSize) - m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "client", "snap invalidate problem"); - if((char *)pSnapshotItem >= (char *)m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pSnap && (char *)pSnapshotItem < (char *)m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_pSnap + m_aapSnapshots[g_Config.m_ClDummy][SnapID]->m_SnapSize) - m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "client", "snap invalidate problem"); - pSnapshotItem->m_TypeAndID = -1; - } -} - void *CClient::SnapFindItem(int SnapID, int Type, int ID) const { if(!m_aapSnapshots[g_Config.m_ClDummy][SnapID]) diff --git a/src/engine/client/client.h b/src/engine/client/client.h index 2f10d2c5b..a877d57b8 100644 --- a/src/engine/client/client.h +++ b/src/engine/client/client.h @@ -376,7 +376,6 @@ public: int GetPredictionTime() override; void *SnapGetItem(int SnapID, int Index, CSnapItem *pItem) const override; int SnapItemSize(int SnapID, int Index) const override; - void SnapInvalidateItem(int SnapID, int Index) override; void *SnapFindItem(int SnapID, int Type, int ID) const override; int SnapNumItems(int SnapID) const override; void SnapSetStaticsize(int ItemType, int Size) override; diff --git a/src/engine/docs/snapshots.txt b/src/engine/docs/snapshots.txt index ede566f1b..1a45bde7c 100644 --- a/src/engine/docs/snapshots.txt +++ b/src/engine/docs/snapshots.txt @@ -24,7 +24,7 @@ Items can be added when is called using the function Section: Client Side Topic: Inspection - is called when a new snapshot has arrived for processing. , and can be used to inspect the current and previous snapshot. This can be done anywhere while the client is running and not just in the function. The client can also call if an item contains improper information that could harm the operation of the client. This should however be done in to assure that no bad data propagates into the rest of the client. + is called when a new snapshot has arrived for processing. , and can be used to inspect the current and previous snapshot. This can be done anywhere while the client is running and not just in the function. Topic: Rendering DOCTODO