mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-08 00:34:08 +00:00
script revision
This commit is contained in:
parent
68f1c03a85
commit
6510b15704
15 changed files with 236 additions and 123 deletions
|
@ -396,3 +396,18 @@ CObject::DeleteAllTempObjectsInArea(CVector point, float fRadius)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
IsObjectPointerValid(CObject* pObject)
|
||||
{
|
||||
if (!pObject)
|
||||
return false;
|
||||
int index = CPools::GetObjectPool()->GetJustIndex(pObject);
|
||||
#ifdef FIX_BUGS
|
||||
if (index < 0 || index >= CPools::GetObjectPool()->GetSize())
|
||||
#else
|
||||
if (index < 0 || index > CPools::GetObjectPool()->GetSize())
|
||||
#endif
|
||||
return false;
|
||||
return pObject->bIsBIGBuilding || pObject->m_entryInfoList.first;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue