mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CEntity::SetCollisionChecking(...)
This commit is contained in:
parent
a0f164ed15
commit
5d701d1ec9
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user