//
// PlayerObject::updateCheckpointTest from 0x344ed8 to 0x344f46 (110 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x497ab6
//
// 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 PlayerObject::updateCheckpointTest(PlayerObject *a1)
{
double v1; // d0
_BOOL4 isFlying; // r0
float v4; // r1
float v5; // r2
int v6; // r3
if ( a1->m_canPlaceCheckpoint )
{
PlayerObject::tryPlaceCheckpoint(a1);
a1->m_canPlaceCheckpoint = 0;
}
isFlying = PlayerObject::isFlying(a1);
if ( isFlying && a1->m_uniqueID == 1 )
{
v6 = a1->m_onFlyCheckpointTries + 1;
if ( v6 <= 19 )
{
a1->m_onFlyCheckpointTries = v6;
}
else
{
a1->m_onFlyCheckpointTries = 0;
PlayerObject::tryPlaceCheckpoint(a1);
}
}
if ( a1->m_checkpointTimeout )
{
sub_33C0D8(isFlying, v4, v5, a1->m_checkpointTimeout);
if ( v1 - a1->m_lastCheckpointTime > 0.100000001 )
a1->m_checkpointTimeout = 0;
}
}