//
// EnhancedGameObject::saveActiveColors from 0x1402a1b70 to 0x1402a1be0 (112 bytes)
//
// 43 xrefs:
// > ??> @ 0x14075ee70
// > ??> @ 0x14081f278
// > ??> @ 0x1408201f0
// > ??> @ 0x140820948
// > ??> @ 0x140821000
// > ??> @ 0x140821768
// > ??> @ 0x140821e20
// > ??> @ 0x140822500
// > ??> @ 0x140822bb8
// > ??> @ 0x1408234c8
// > ??> @ 0x140823c10
// > ??> @ 0x1408242c8
// > ??> @ 0x140824ac0
// > ??> @ 0x140825178
// > ??> @ 0x140825830
// > ??> @ 0x1408260a0
// > ??> @ 0x140826898
// > ??> @ 0x140827040
// > ??> @ 0x140827770
// > ??> @ 0x140827e28
// > ??> @ 0x140828580
// > ??> @ 0x140828dc8
// > ??> @ 0x140829480
// > ??> @ 0x140829c00
// > ??> @ 0x14082a380
// > ??> @ 0x14082aa38
// > ??> @ 0x14082b0f0
// > ??> @ 0x14082bb00
// > ??> @ 0x14082c230
// > ??> @ 0x14082c8e8
// > ??> @ 0x14082cfa0
// > ??> @ 0x14082d658
// > ??> @ 0x14082de28
// > ??> @ 0x14082e5d0
// > ??> @ 0x14082ec88
// > ??> @ 0x14082f340
// > ??> @ 0x14082f9f8
// > ??> @ 0x1408300b0
// > ??> @ 0x140830768
// > ??> @ 0x140830e20
// > ??> @ 0x140831640
// > ??> @ 0x140831dc0
// > ??> @ 0x14091d9f0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:29:15 +0000
//
char __fastcall EnhancedGameObject::saveActiveColors(__int64 a1)
{
int v2; // eax
LOBYTE(v2) = GameObject::saveActiveColors(a1);
if ( *(_BYTE *)(a1 + 1424) )
{
if ( *(float *)(a1 + 1368) <= 0.0 && !*(_BYTE *)(a1 + 1384) )
{
v2 = rand();
*(float *)(a1 + 1368) = (float)v2 / 32767.0;
}
}
else
{
LOBYTE(v2) = 0;
*(_QWORD *)(a1 + 1368) = 0;
}
if ( *(_BYTE *)(a1 + 1402) )
LOBYTE(v2) = EnhancedGameObject::setupAnimationVariables(a1);
return v2;
}