//
// EnhancedGameObject::setupAnimationVariables from 0x9bec04 to 0x9becb8 (180 bytes)
//
// 4 xrefs:
// > EnhancedGameObject::saveActiveColors @ 0x64ac38
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x94f390
// > SetupAnimSettingsPopup::updateAnimSettings @ 0x94f3a8
// > ??> @ 0xa8b58
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *a1)
{
GameManager *v2; // x0
GameManager *v3; // x0
float m_frameTime; // s0
float m_randomFrameTime; // s1
float m_animationSpeed; // s2
bool v7; // w0
if ( a1->m_objectID == 2065 )
{
m_frameTime = a1->m_frameTime;
}
else
{
v2 = GameManager::sharedState();
a1->m_frames = GameManager::framesForAnimation(v2, a1->m_objectID);
v3 = GameManager::sharedState();
m_frameTime = GameManager::frameTimeForAnimation(v3, a1->m_objectID);
}
m_randomFrameTime = a1->m_randomFrameTime;
if ( a1->m_animationShouldUseSpeed )
{
m_animationSpeed = a1->m_animationSpeed;
if ( m_animationSpeed != 0.0 )
m_randomFrameTime = fabsf(m_animationSpeed);
}
a1->m_frameTime = m_frameTime / m_randomFrameTime;
v7 = GameObject::usesFreezeAnimation(a1);
if ( !v7 || a1->m_disableDelayedLoop )
{
a1->m_isDisabled2 = 0;
v7 = 0;
}
a1->m_visible = v7;
a1->m_shouldNotHideAnimFreeze = GameObject::shouldNotHideAnimFreeze(a1);
a1->m_usesSpecialAnimation = GameObject::usesSpecialAnimation(a1);
}