Implement/match LegoAnimMMPresenter::FUN_1004b450 (#827)

This commit is contained in:
Christian Semmler
2024-04-20 11:18:19 -04:00
committed by GitHub
parent c617139d5b
commit 91d043a9ae
11 changed files with 149 additions and 23 deletions

View File

@@ -216,12 +216,12 @@ void MxMediaPresenter::RepeatingTickle()
if (m_currentChunk) {
MxLong time = m_currentChunk->GetTime();
if (time <= m_action->GetElapsedTime() % m_action->GetLoopCount()) {
ProgressTickleState(e_unk5);
ProgressTickleState(e_freezing);
}
}
else {
if (m_action->GetElapsedTime() >= m_action->GetStartTime() + m_action->GetDuration()) {
ProgressTickleState(e_unk5);
ProgressTickleState(e_freezing);
}
}
}

View File

@@ -156,11 +156,11 @@ MxResult MxPresenter::Tickle()
case e_repeating:
this->RepeatingTickle();
if (m_currentTickleState != e_unk5) {
if (m_currentTickleState != e_freezing) {
break;
}
case e_unk5:
this->Unk5Tickle();
case e_freezing:
this->FreezingTickle();
if (m_currentTickleState != e_done) {
break;