//
// GroupCommandObject2::step from 0x140257900 to 0x1402579ce (206 bytes)
//
// 4 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x14025f61a
// > GJEffectManager::prepareMoveActions @ 0x14025f85a
// > GJEffectManager::prepareMoveActions @ 0x14025fa8d
// > ??> @ 0x1406cfa5c
//
// 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 GroupCommandObject2::step(GroupCommandObject2 *a1, float a2)
{
bool v3; // zf
double v4; // xmm2_8
int m_actionType1; // edx
double m_duration; // xmm0_8
int m_actionType2; // edx
float m_deltaTimeInFloat; // xmm1_4
if ( !a1->m_disabled )
{
v3 = !a1->m_finished;
v4 = a2 + a1->m_deltaTime;
a1->m_deltaTime = v4;
if ( v3 )
{
if ( a1->m_alreadyUpdated )
a1->m_alreadyUpdated = 0;
else
a1->m_deltaTimeInFloat = a2 + a1->m_deltaTimeInFloat;
m_actionType1 = a1->m_actionType1;
if ( m_actionType1 )
{
GroupCommandObject2::updateAction(a1, m_actionType1, a1->m_actionValue1);
m_actionType2 = a1->m_actionType2;
if ( m_actionType2 )
GroupCommandObject2::updateAction(a1, m_actionType2, a1->m_actionValue2);
m_deltaTimeInFloat = a1->m_deltaTimeInFloat;
if ( m_deltaTimeInFloat > 0.0 && m_deltaTimeInFloat >= a1->m_duration )
a1->m_finished = 1;
}
else
{
m_duration = a1->m_duration;
if ( v4 >= m_duration && m_duration != -1.0 )
a1->m_finished = 1;
}
}
}
}