//
// EnhancedGameObject::saveActiveColors from 0x358dde to 0x358e32 (84 bytes)
//
// 0 xrefs:
//
// 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::saveActiveColors(EnhancedGameObject *a1)
{
int *p_m_animationRandomizedStartValue; // r5
GameObject::saveActiveColors(a1);
p_m_animationRandomizedStartValue = &a1->m_animationRandomizedStartValue;
if ( a1->m_animationRandomizedStart )
{
if ( *(float *)p_m_animationRandomizedStartValue <= 0.0 && !a1->m_unk548 )
*(float *)p_m_animationRandomizedStartValue = vcvts_n_f32_s32(rand(), 0x1Fu);
}
else
{
*p_m_animationRandomizedStartValue = 0;
a1->m_animationStart = 0.0;
}
if ( a1->m_hasCustomAnimation )
EnhancedGameObject::setupAnimationVariables(a1);
}