//
// EnhancedGameObject::saveActiveColors from 0x1005cc300 to 0x1005cc37a (122 bytes)
//
// 42 xrefs:
// > ??> @ 0x1008c46a8
// > ??> @ 0x1008c4ee0
// > ??> @ 0x1008c56d8
// > ??> @ 0x1008c5ed0
// > ??> @ 0x1008c66c8
// > ??> @ 0x1008c6ec0
// > ??> @ 0x1008c76b8
// > ??> @ 0x1008c8698
// > ??> @ 0x1008c8ea8
// > ??> @ 0x1008c9720
// > ??> @ 0x1008c9f30
// > ??> @ 0x1008ca740
// > ??> @ 0x1008caf50
// > ??> @ 0x1008cb760
// > ??> @ 0x1008cbf70
// > ??> @ 0x1008cc780
// > ??> @ 0x1008ccf90
// > ??> @ 0x1008cd7a0
// > ??> @ 0x1008cdfb0
// > ??> @ 0x1008ce7d8
// > ??> @ 0x1008cf030
// > ??> @ 0x1008cf858
// > ??> @ 0x1008d0080
// > ??> @ 0x1008d08a8
// > ??> @ 0x1008d10d0
// > ??> @ 0x1008d18e0
// > ??> @ 0x1008d20f0
// > ??> @ 0x1008d2900
// > ??> @ 0x1008d3110
// > ??> @ 0x1008d3920
// > ??> @ 0x1008d4130
// > ??> @ 0x1008d4940
// > ??> @ 0x1008d5150
// > ??> @ 0x1008d5960
// > ??> @ 0x1008d6170
// > ??> @ 0x1008d6980
// > ??> @ 0x1008d7190
// > ??> @ 0x1008d79a0
// > ??> @ 0x1008d81b0
// > ??> @ 0x1008d89c0
// > ??> @ 0x1008d91d0
// > ??> @ 0x100972210
//
// 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 __fastcall EnhancedGameObject::saveActiveColors(EnhancedGameObject *a1)
{
GameObject::saveActiveColors(a1);
if ( a1->m_animationRandomizedStart )
{
if ( *(float *)&a1->m_animationRandomizedStartValue <= 0.0 && !a1->m_unk548 )
*(float *)&a1->m_animationRandomizedStartValue = (float)rand() * 4.6566129e-10;
if ( a1->m_hasCustomAnimation )
goto LABEL_6;
}
else
{
*(_QWORD *)&a1->m_animationRandomizedStartValue = 0;
if ( a1->m_hasCustomAnimation )
LABEL_6:
EnhancedGameObject::setupAnimationVariables(a1);
}
}