mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 13:29:48 +00:00
CallAI
This commit is contained in:
parent
ac9a2d9157
commit
ee5bfb185f
30
shell.cpp
30
shell.cpp
@ -20,6 +20,36 @@ EXPORT i32 gShellMysterioRelated;
|
||||
|
||||
extern CVector gGlobalNormal;
|
||||
|
||||
// @Ok
|
||||
INLINE void CallAI(CBody *pList)
|
||||
{
|
||||
CBody* pCur = pList;
|
||||
if (pCur)
|
||||
{
|
||||
for (
|
||||
CBody *pNext = reinterpret_cast<CBody*>(pCur->field_20);
|
||||
;
|
||||
pNext = reinterpret_cast<CBody*>(pNext->field_20))
|
||||
{
|
||||
if (pCur->mCBodyFlags & 0x40)
|
||||
{
|
||||
if (pCur->mCBodyFlags & 0x80)
|
||||
{
|
||||
delete pCur;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pCur->InterleaveAI();
|
||||
}
|
||||
|
||||
pCur = pNext;
|
||||
if (!pNext)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// @MEDIUMTODO
|
||||
void CShellMysterioHeadCircle::Move(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user