//
// PlayerObject::didHitHead from 0x345304 to 0x345336 (50 bytes)
//
// 3 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x345fa4
// > PlayerObject::collidedWithObjectInternal @ 0x34620e
// > PlayerObject::collidedWithObjectInternal @ 0x34664c
//
// 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; // r2
if ( a1->m_stateFlipGravity > 0 )
{
PlayerObject::hardFlipGravity(a1);
m_stateNoAutoJump = a1->m_stateNoAutoJump;
a1->m_maybeIsBoosted = 1;
a1->m_isOnGround2 = 0;
if ( m_stateNoAutoJump > 0 )
{
a1->m_isOnGround = 0;
a1->m_stateRingJump = 0;
a1->m_jumpBuffered = 0;
}
}
}