//
// PlayerObject::updateCollideRight from 0x100224930 to 0x1002249ac (124 bytes)
//
// 2 xrefs:
// > PlayerObject::collidedWithObjectInternal @ 0x1002226cc
// > PlayerObject::updateCollide @ 0x100223e28
//
// 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::updateCollideRight(PlayerObject *a1, float a2, GameObject *a3)
{
int m_uniqueID; // w8
double m_collidedRightMinX; // d1
double v7; // d0
cocos2d::CCDictionary *m_collisionLogRight; // x0
if ( a3 )
m_uniqueID = a3->m_uniqueID;
else
m_uniqueID = 0;
m_collidedRightMinX = a1->m_collidedRightMinX;
v7 = a2;
if ( m_collidedRightMinX <= v7 && m_collidedRightMinX != 0.0 )
v7 = a1->m_collidedRightMinX;
a1->m_collidedRightMinX = v7;
if ( m_uniqueID )
{
if ( a1->m_lastCollisionRight != m_uniqueID )
{
a1->m_lastCollisionRight = m_uniqueID;
m_collisionLogRight = a1->m_collisionLogRight;
if ( m_collisionLogRight )
cocos2d::CCDictionary::setObject(m_collisionLogRight, a1->m_maybeLastGroundObject, m_uniqueID);
}
a1->m_collidingWithRight = a3;
a1->m_collidingWithLeft = nullptr;
}
}