//
// PlayerObject::didHitHead from 0x62ea28 to 0x62ea78 (80 bytes)
//
// 4 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x62f7f8
// > PlayerObject::collidedWithObjectInternal @ 0x62fdfc
// > PlayerObject::collidedWithObjectInternal @ 0x62fef4
// > ??> @ 0x50478
//
// 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::didHitHead(PlayerObject *a1)
{
int m_stateNoAutoJump; // w0
if ( a1->m_stateFlipGravity > 0 )
{
PlayerObject::hardFlipGravity(a1);
a1->m_isOnGround2 = 0;
m_stateNoAutoJump = a1->m_stateNoAutoJump;
a1->m_maybeIsBoosted = 1;
if ( m_stateNoAutoJump > 0 )
{
a1->m_isOnGround = 0;
a1->m_stateRingJump = 0;
a1->m_jumpBuffered = 0;
}
}
}