mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 16:51:15 +00:00
Match LegoAnimActor::FUN_1001c1f0, style
This commit is contained in:
parent
cf84ec26ae
commit
4a36e402d6
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user