//
// EnhancedGameObject::refreshRotateAction from 0x1005d1590 to 0x1005d1606 (118 bytes)
//
// 1 xrefs:
// > SetupRotatePopup::onClose @ 0x10059d1f8
//
// 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::refreshRotateAction(EnhancedGameObject *a1)
{
float m_rotationSpeed; // xmm1_4
float v2; // xmm0_4
m_rotationSpeed = a1->m_rotationSpeed;
if ( m_rotationSpeed == 0.0 )
{
m_rotationSpeed = a1->m_rotationAngle;
v2 = flt_100817B30[(float)((float)rand() * 4.6566129e-10) > 0.5];
}
else
{
v2 = 1.0;
}
a1->m_rotationDelta = m_rotationSpeed * v2;
}