mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match LegoAnimationManager::Resume (#869)
* Implement/match LegoAnimationManager::FUN_1005f0b0 * Rename
This commit is contained in:

committed by
GitHub

parent
e7670f9a81
commit
599d8c91c8
@@ -158,8 +158,8 @@ void LegoAnimationManager::Reset(MxBool p_und)
|
||||
m_animState->SetFlag();
|
||||
}
|
||||
|
||||
undefined unk0x42b = m_unk0x42b;
|
||||
FUN_1005ef10();
|
||||
MxBool suspended = m_suspended;
|
||||
Suspend();
|
||||
|
||||
if (m_tranInfoList != NULL) {
|
||||
delete m_tranInfoList;
|
||||
@@ -172,22 +172,31 @@ void LegoAnimationManager::Reset(MxBool p_und)
|
||||
DeleteAnimations();
|
||||
Init();
|
||||
|
||||
m_unk0x42b = unk0x42b;
|
||||
m_suspended = suspended;
|
||||
m_unk0x428 = m_unk0x3a;
|
||||
m_unk0x429 = m_unk0x400;
|
||||
m_unk0x42a = m_unk0x402;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1005ef10
|
||||
void LegoAnimationManager::FUN_1005ef10()
|
||||
// FUNCTION: BETA10 0x1003fc7a
|
||||
void LegoAnimationManager::Suspend()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1005f0b0
|
||||
void LegoAnimationManager::FUN_1005f0b0()
|
||||
// FUNCTION: LEGO1 0x1005f0b0
|
||||
// FUNCTION: BETA10 0x1003fefe
|
||||
void LegoAnimationManager::Resume()
|
||||
{
|
||||
// TODO
|
||||
if (m_suspended) {
|
||||
m_unk0x408 = m_unk0x40c = m_unk0x404 = Timer()->GetTime();
|
||||
m_unk0x410 = 5000;
|
||||
m_unk0x3a = m_unk0x428;
|
||||
m_unk0x400 = m_unk0x429;
|
||||
m_unk0x402 = m_unk0x42a;
|
||||
m_suspended = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1005f130
|
||||
@@ -227,7 +236,7 @@ void LegoAnimationManager::Init()
|
||||
m_unk0x0e = 0;
|
||||
m_unk0x10 = 0;
|
||||
m_unk0x401 = 0;
|
||||
m_unk0x42b = 0;
|
||||
m_suspended = FALSE;
|
||||
m_unk0x430 = 0;
|
||||
m_unk0x42c = 0;
|
||||
m_unk0x408 = m_unk0x40c = m_unk0x404 = Timer()->GetTime();
|
||||
@@ -402,7 +411,7 @@ MxResult LegoAnimationManager::LoadScriptInfo(MxS32 p_scriptIndex)
|
||||
result = SUCCESS;
|
||||
m_unk0x402 = 1;
|
||||
|
||||
if (m_unk0x42b) {
|
||||
if (m_suspended) {
|
||||
m_unk0x428 = m_unk0x3a;
|
||||
m_unk0x429 = m_unk0x400;
|
||||
m_unk0x42a = 1;
|
||||
@@ -541,7 +550,7 @@ done:
|
||||
// FUNCTION: LEGO1 0x100603c0
|
||||
void LegoAnimationManager::DeleteAnimations()
|
||||
{
|
||||
undefined unk0x42b = m_unk0x42b;
|
||||
MxBool suspended = m_suspended;
|
||||
|
||||
if (m_anims != NULL) {
|
||||
for (MxS32 i = 0; i < m_animCount; i++) {
|
||||
@@ -560,7 +569,7 @@ void LegoAnimationManager::DeleteAnimations()
|
||||
}
|
||||
|
||||
Init();
|
||||
m_unk0x42b = unk0x42b;
|
||||
m_suspended = suspended;
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10060570
|
||||
|
Reference in New Issue
Block a user