//
// EnhancedGameObject::saveActiveColors from 0x1002631a8 to 0x10026321c (116 bytes)
//
// 42 xrefs:
// > ??> @ 0x1007d06b0
// > ??> @ 0x1007f5730
// > ??> @ 0x1007f5f68
// > ??> @ 0x1007f6760
// > ??> @ 0x1007f6f58
// > ??> @ 0x1007f7750
// > ??> @ 0x1007f7f48
// > ??> @ 0x1007f8740
// > ??> @ 0x1007f9720
// > ??> @ 0x1007f9f30
// > ??> @ 0x1007fa798
// > ??> @ 0x1007fafa8
// > ??> @ 0x1007fb7b8
// > ??> @ 0x1007fbfc8
// > ??> @ 0x1007fc7d8
// > ??> @ 0x1007fcfe8
// > ??> @ 0x1007fd7f8
// > ??> @ 0x1007fe008
// > ??> @ 0x1007fe818
// > ??> @ 0x1007ff028
// > ??> @ 0x1007ff850
// > ??> @ 0x1008000a8
// > ??> @ 0x1008008d0
// > ??> @ 0x1008010f8
// > ??> @ 0x100801920
// > ??> @ 0x100802148
// > ??> @ 0x100802958
// > ??> @ 0x100803168
// > ??> @ 0x100803978
// > ??> @ 0x100804188
// > ??> @ 0x100804998
// > ??> @ 0x1008051a8
// > ??> @ 0x1008059b8
// > ??> @ 0x1008061c8
// > ??> @ 0x1008069d8
// > ??> @ 0x1008071e8
// > ??> @ 0x1008079f8
// > ??> @ 0x100808208
// > ??> @ 0x100808a18
// > ??> @ 0x100809228
// > ??> @ 0x100809a38
// > ??> @ 0x10080a248
//
// 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 = vcvts_n_f32_s32(rand(), 0x1Fu);
}
else
{
*(_QWORD *)&a1->m_animationRandomizedStartValue = 0;
}
if ( a1->m_hasCustomAnimation )
EnhancedGameObject::setupAnimationVariables(a1);
}