[saco] Implement/match CEntity::SetCollisionChecking(...)

This commit is contained in:
RD42 2024-08-07 19:03:47 +08:00
parent a0f164ed15
commit 5d701d1ec9
2 changed files with 13 additions and 0 deletions

View File

@ -490,7 +490,19 @@ BOOL CEntity::HasExceededWorldBoundries(float fPX, float fZX, float fPY, float f
//-----------------------------------------------------------
void CEntity::SetCollisionChecking(int iCheck)
{
if(!m_pEntity) return;
if(m_pEntity->vtable == 0x863C40) return;
if(iCheck) {
m_pEntity->dwProcessingFlags |= 1;
} else {
m_pEntity->dwProcessingFlags &= 0xFFFFFFFE;
}
}
//-----------------------------------------------------------
//-----------------------------------------------------------

View File

@ -35,6 +35,7 @@ public:
BOOL EnforceWorldBoundries(float fPX, float fZX, float fPY, float fNY);
BOOL HasExceededWorldBoundries(float fPX, float fZX, float fPY, float fNY);
void SetCollisionChecking(int iCheck);
virtual void Add();
virtual void Remove();
BOOL IsAdded();