From 054120bc5d758d8eb8ebb89d3bec1450ba74d338 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Thu, 25 Apr 2024 11:00:42 -0400 Subject: [PATCH] Implement/match LegoAnimPresenter::FUN_1006aa60 (#851) --- .../lego/legoomni/src/video/legoanimpresenter.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index 13bada16..5a0604fa 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -514,10 +514,20 @@ void LegoAnimPresenter::FUN_1006a4f0( } } -// STUB: LEGO1 0x1006aa60 +// FUNCTION: LEGO1 0x1006aa60 +// FUNCTION: BETA10 0x1004feee void LegoAnimPresenter::FUN_1006aa60() { - // TODO + LegoROIListCursor cursor(m_unk0x74); + LegoROI* roi; + + while (cursor.Next(roi)) { + const char* name = roi->GetName(); + + if (m_unk0x96 || !CharacterManager()->Exists(name)) { + CharacterManager()->FUN_10083c30(name); + } + } } // FUNCTION: LEGO1 0x1006ab70