//
// PlayerObject::didHitHead from 0x1002248e0 to 0x100224930 (80 bytes)
//
// 3 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x100222b94
// > PlayerObject::collidedWithObjectInternal @ 0x100222f30
// > PlayerObject::collidedWithObjectInternal @ 0x100223028
//
// 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 __fastcall PlayerObject::didHitHead(PlayerObject *a1)
{
if ( a1->m_stateFlipGravity >= 1 )
{
PlayerObject::hardFlipGravity(a1);
a1->m_maybeIsBoosted = 1;
a1->m_isOnGround2 = 0;
if ( a1->m_stateNoAutoJump >= 1 )
{
a1->m_isOnGround = 0;
*(_WORD *)&a1->m_jumpBuffered = 0;
}
}
}