1
0
Fork 0
mirror of https://github.com/isledecomp/isle.git synced 2025-03-27 23:20:32 -04:00

Match MxControlPresenter::HasTickleStatePassed ()

This commit is contained in:
Christian Semmler 2025-03-15 14:19:09 -07:00 committed by GitHub
parent 51fc69e49f
commit 67c71cb9e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,9 +296,14 @@ void MxControlPresenter::Enable(MxBool p_enable)
// FUNCTION: LEGO1 0x100448a0
MxBool MxControlPresenter::HasTickleStatePassed(TickleState p_tickleState)
{
MxCompositePresenterList::iterator it = m_list.begin();
for (MxS16 i = m_unk0x4e; i > 0; i--, it++) {
}
MxCompositePresenterList::const_iterator it = m_list.begin();
#ifdef COMPAT_MODE
advance(it, m_unk0x4e);
#else
// Uses forward iterator logic instead of bidrectional for some reason.
_Advance(it, m_unk0x4e, forward_iterator_tag());
#endif
return (*it)->HasTickleStatePassed(p_tickleState);
}