mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-11 07:28:00 +08:00
Replace obsoleted IHandleEntity with CEntityInstance (#161)
This commit is contained in:
1 parent
628a9be543
commit
f782bbf7ed
21 files changed
+138
-394
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user