//
// PlayerObject::isBoostValid from 0x1004064d0 to 0x100406526 (86 bytes)
//
// 0 xrefs:
//
// 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::isBoostValid(PlayerObject *a1, float a2)
{
bool m_isCurrentSlopeTop; // al
m_isCurrentSlopeTop = a1->m_isCurrentSlopeTop;
if ( !a1->m_isUpsideDown )
{
if ( !m_isCurrentSlopeTop || !a1->m_slopeFlipGravityRelated )
return a2 > a1->m_yVelocity;
return a1->m_yVelocity > a2;
}
if ( m_isCurrentSlopeTop || !a1->m_slopeFlipGravityRelated )
return a1->m_yVelocity > a2;
return a2 > a1->m_yVelocity;
}