Match LegoAnimActor::FUN_1001c1f0, style

This commit is contained in:
Christian Semmler 2024-03-26 12:41:37 -04:00
parent cf84ec26ae
commit 4a36e402d6
3 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,9 @@
struct LegoAnimActorStruct {
LegoAnimActorStruct(float p_unk0x00, LegoAnim* p_AnimTreePtr, LegoROI** p_roiMap, MxU32 p_numROIs);
~LegoAnimActorStruct();
float GetDuration();
float m_unk0x00; // 0x00
LegoAnim* m_AnimTreePtr; // 0x04
LegoROI** m_roiMap; // 0x08

View File

@ -9,7 +9,7 @@ class LegoPathBoundary;
class LegoWorld;
struct LegoPathControllerComparator {
MxBool operator()(undefined*, undefined*) const { return 0; }
MxBool operator()(const undefined*, const undefined*) const { return 0; }
};
// VTABLE: LEGO1 0x100d7d60

View File

@ -45,8 +45,8 @@ LegoAnimActor::~LegoAnimActor()
// FUNCTION: LEGO1 0x1001c1f0
MxResult LegoAnimActor::FUN_1001c1f0(float& p_out)
{
p_out = m_unk0x80 - (float) m_animMaps[m_curAnim]->m_AnimTreePtr->GetDuration() *
((MxS32) (m_unk0x80 / (float) m_animMaps[m_curAnim]->m_AnimTreePtr->GetDuration()));
float duration = (float) m_animMaps[m_curAnim]->m_AnimTreePtr->GetDuration();
p_out = m_unk0x80 - duration * ((MxS32) (m_unk0x80 / duration));
return SUCCESS;
}