This commit is contained in:
krystalgamer 2024-07-21 16:58:01 +02:00
parent ac9a2d9157
commit ee5bfb185f
2 changed files with 31 additions and 0 deletions

View File

@ -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)
{

View File

@ -211,6 +211,7 @@ static const i32 INPUT_MAX_SIZE = 9;
EXPORT i32 Shell_DeRudify(char[INPUT_MAX_SIZE]);
EXPORT i32 Shell_ContainsSubString(const char*, const char*);
EXPORT void CallAI(CBody *);
void validate_CRudeWordHitterSpidey(void);
void validate_CDummy(void);