Implement/match LegoWorld::ActorExists (#1330)

This commit is contained in:
Christian Semmler
2025-01-11 09:55:19 -07:00
committed by GitHub
parent 4d3481d2bd
commit 33d8192d75
3 changed files with 19 additions and 0 deletions

View File

@@ -334,6 +334,21 @@ void LegoWorld::RemoveActor(LegoPathActor* p_actor)
}
}
// FUNCTION: BETA10 0x100da560
MxBool LegoWorld::ActorExists(LegoPathActor* p_actor)
{
LegoPathControllerListCursor cursor(&m_list0x68);
LegoPathController* controller;
while (cursor.Next(controller)) {
if (controller->ActorExists(p_actor) == TRUE) {
return TRUE;
}
}
return FALSE;
}
// FUNCTION: LEGO1 0x1001fda0
// FUNCTION: BETA10 0x100da621
void LegoWorld::FUN_1001fda0(LegoAnimPresenter* p_presenter)