//
// EnhancedGameObject::saveActiveColors from 0x1401a4bd0 to 0x1401a4c40 (112 bytes)
//
// 42 xrefs:
// > ??> @ 0x14055e780
// > ??> @ 0x14060d9a8
// > ??> @ 0x14060ea18
// > ??> @ 0x14060f250
// > ??> @ 0x14060f8f8
// > ??> @ 0x14060ffc8
// > ??> @ 0x140610680
// > ??> @ 0x140610dc8
// > ??> @ 0x140611628
// > ??> @ 0x140611d60
// > ??> @ 0x140612548
// > ??> @ 0x140612bf0
// > ??> @ 0x140613298
// > ??> @ 0x140613a08
// > ??> @ 0x1406140b0
// > ??> @ 0x140614898
// > ??> @ 0x1406150d0
// > ??> @ 0x140615818
// > ??> @ 0x140615ec0
// > ??> @ 0x140616608
// > ??> @ 0x140616dc8
// > ??> @ 0x140617470
// > ??> @ 0x140617b18
// > ??> @ 0x140618288
// > ??> @ 0x140618930
// > ??> @ 0x140619078
// > ??> @ 0x140619b18
// > ??> @ 0x14061a1c0
// > ??> @ 0x14061a868
// > ??> @ 0x14061af88
// > ??> @ 0x14061b630
// > ??> @ 0x14061bd78
// > ??> @ 0x14061c510
// > ??> @ 0x14061cbb8
// > ??> @ 0x14061d260
// > ??> @ 0x14061d908
// > ??> @ 0x14061dfb0
// > ??> @ 0x14061e658
// > ??> @ 0x14061ed00
// > ??> @ 0x14061f510
// > ??> @ 0x14061fca8
// > ??> @ 0x1406cc090
//
// 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)
{
GameObject::saveActiveColors(a1);
if ( a1->m_animationRandomizedStart )
{
if ( *(float *)&a1->m_animationRandomizedStartValue <= 0.0 && !a1->m_unk548 )
*(float *)&a1->m_animationRandomizedStartValue = (float)rand() / 32767.0;
}
else
{
*(_QWORD *)&a1->m_animationRandomizedStartValue = 0;
}
if ( a1->m_hasCustomAnimation )
EnhancedGameObject::setupAnimationVariables(a1);
}