Replace obsoleted IHandleEntity with CEntityInstance (#161)

This commit is contained in:
komashchenko authored and GitHub committed 2023-10-13 19:38:47 +03:00
1 parent 628a9be543
commit f782bbf7ed
21 files changed
+138 -394

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ CBaseEntity* CEntitySystem::GetBaseEntity(CEntityIndex entnum)
if (pIdentity->m_EHandle.GetEntryIndex() != entnum.Get())
return nullptr;
return dynamic_cast<CBaseEntity*>(pIdentity->m_pInstance);
return static_cast<CBaseEntity*>(pIdentity->m_pInstance);
}
CBaseEntity* CEntitySystem::GetBaseEntity(const CEntityHandle& hEnt)
@@ -36,7 +36,7 @@ CBaseEntity* CEntitySystem::GetBaseEntity(const CEntityHandle& hEnt)
if (pIdentity->m_EHandle != hEnt)
return nullptr;
return dynamic_cast<CBaseEntity*>(pIdentity->m_pInstance);
return static_cast<CBaseEntity*>(pIdentity->m_pInstance);
}
void CGameEntitySystem::AddListenerEntity(IEntityListener* pListener)