diff --git a/LEGO1/lego/legoomni/include/legoanimpresenter.h b/LEGO1/lego/legoomni/include/legoanimpresenter.h index 36683461..22d4535c 100644 --- a/LEGO1/lego/legoomni/include/legoanimpresenter.h +++ b/LEGO1/lego/legoomni/include/legoanimpresenter.h @@ -101,7 +101,7 @@ class LegoAnimPresenter : public MxVideoPresenter { void FUN_1006ab70(); LegoBool FUN_1006aba0(); MxBool FUN_1006abb0(LegoTreeNode* p_node, LegoROI* p_roi); - void FUN_1006ac90(); + void SubstituteVariables(); void FUN_1006b900(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix); void FUN_1006b9a0(LegoAnim* p_anim, MxLong p_time, Matrix4* p_matrix); void FUN_1006c8a0(MxBool p_bool); diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index a038e042..13bada16 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -588,10 +588,17 @@ MxBool LegoAnimPresenter::FUN_1006abb0(LegoTreeNode* p_node, LegoROI* p_roi) return result; } -// STUB: LEGO1 0x1006ac90 -void LegoAnimPresenter::FUN_1006ac90() +// FUNCTION: LEGO1 0x1006ac90 +// FUNCTION: BETA10 0x1005022e +void LegoAnimPresenter::SubstituteVariables() { - // TODO + if (m_substMap != NULL) { + MxVariableTable* variableTable = VariableTable(); + + for (LegoAnimSubstMap::iterator it = m_substMap->begin(); it != m_substMap->end(); it++) { + variableTable->SetVariable((*it).first, (*it).second); + } + } } // FUNCTION: LEGO1 0x1006ad30 @@ -709,9 +716,10 @@ void LegoAnimPresenter::ReadyTickle() } // FUNCTION: LEGO1 0x1006b5e0 +// FUNCTION: BETA10 0x10050b85 void LegoAnimPresenter::StartingTickle() { - FUN_1006ac90(); + SubstituteVariables(); FUN_100692b0(); FUN_100695c0();