//
// PlayerObject::isSafeHeadTest from 0x10041b400 to 0x10041b46c (108 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x100125d6f
// > GJBaseGameLayer::checkCollisions @ 0x100125f72
//
// 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
//
bool __fastcall PlayerObject::isSafeHeadTest(PlayerObject *a1)
{
double m_lastFlipTime; // xmm1_8
bool result; // al
double m_gameModeChangedTime; // xmm1_8
m_lastFlipTime = a1->m_lastFlipTime;
if ( m_lastFlipTime == 0.0 || (result = 1, a1->m_totalTime - m_lastFlipTime >= 0.2000000029802322) )
{
m_gameModeChangedTime = a1->m_gameModeChangedTime;
if ( m_gameModeChangedTime == 0.0 )
return a1->m_stateHitHead > 0;
result = 1;
if ( a1->m_totalTime - m_gameModeChangedTime >= 0.2000000029802322 )
return a1->m_stateHitHead > 0;
}
return result;
}