//
// PlayerObject::destroyFromHitHead from 0x340138 to 0x340166 (46 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::checkCollisions @ 0x493650
// > GJBaseGameLayer::checkCollisions @ 0x493cca
//
// 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 PlayerObject::destroyFromHitHead(PlayerObject *a1)
{
bool m_isBall; // r3
if ( PlayerObject::isFlying(a1) )
return 0;
m_isBall = a1->m_isBall;
if ( m_isBall )
return 0;
if ( !a1->m_isSpider )
return a1->m_stateHitHead <= 0;
return m_isBall;
}