mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-26 09:41:15 +00:00
improved accuracy of MxTransitionManager::Tickle
This commit is contained in:
parent
d49908bd89
commit
c5ae6f9a0e
@ -19,35 +19,32 @@ MxTransitionManager::~MxTransitionManager()
|
|||||||
// OFFSET: LEGO1 0x1004bac0
|
// OFFSET: LEGO1 0x1004bac0
|
||||||
MxResult MxTransitionManager::Tickle()
|
MxResult MxTransitionManager::Tickle()
|
||||||
{
|
{
|
||||||
MxS32 speed = this->m_animationSpeed;
|
if (this->m_animationSpeed + this->m_systemTime > timeGetTime()) {
|
||||||
MxULong storedTime = this->m_systemTime;
|
|
||||||
MxULong realTime = timeGetTime();
|
|
||||||
|
|
||||||
if (speed + storedTime <= realTime) {
|
|
||||||
storedTime = timeGetTime();
|
|
||||||
this->m_systemTime = storedTime;
|
|
||||||
|
|
||||||
switch (this->m_transitionType) {
|
|
||||||
case NO_ANIMATION:
|
|
||||||
FUN_1004bcf0();
|
|
||||||
return SUCCESS;
|
|
||||||
case DISSOLVE:
|
|
||||||
FUN_1004bd10();
|
|
||||||
return SUCCESS;
|
|
||||||
case PIXELATION:
|
|
||||||
FUN_1004bed0();
|
|
||||||
return SUCCESS;
|
|
||||||
case SCREEN_WIPE:
|
|
||||||
FUN_1004c170();
|
|
||||||
return SUCCESS;
|
|
||||||
case WINDOWS:
|
|
||||||
FUN_1004c270();
|
|
||||||
return SUCCESS;
|
|
||||||
case BROKEN:
|
|
||||||
FUN_1004c3e0();
|
|
||||||
}
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->m_systemTime = timeGetTime();
|
||||||
|
|
||||||
|
switch (this->m_transitionType) {
|
||||||
|
case NO_ANIMATION:
|
||||||
|
FUN_1004bcf0();
|
||||||
|
break;
|
||||||
|
case DISSOLVE:
|
||||||
|
FUN_1004bd10();
|
||||||
|
break;
|
||||||
|
case PIXELATION:
|
||||||
|
FUN_1004bed0();
|
||||||
|
break;
|
||||||
|
case SCREEN_WIPE:
|
||||||
|
FUN_1004c170();
|
||||||
|
break;
|
||||||
|
case WINDOWS:
|
||||||
|
FUN_1004c270();
|
||||||
|
break;
|
||||||
|
case BROKEN:
|
||||||
|
FUN_1004c3e0();
|
||||||
|
break;
|
||||||
|
}
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user