Fix actions not ending

This commit is contained in:
Christian Semmler 2024-01-07 20:55:32 -05:00
parent 091ecd5935
commit 569d8ace96
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -226,7 +226,7 @@ void MxMediaPresenter::RepeatingTickle()
}
}
else {
if (m_action->GetElapsedTime() <= m_action->GetStartTime() + m_action->GetDuration()) {
if (m_action->GetStartTime() + m_action->GetDuration() <= m_action->GetElapsedTime()) {
m_previousTickleStates |= 1 << (unsigned char) m_currentTickleState;
m_currentTickleState = TickleState_unk5;
}