//
// PlayerObject::getOldPosition from 0x33d1d8 to 0x33d234 (92 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::processPlayerFollowActions @ 0x474f50
//
// 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
//
float PlayerObject::getOldPosition(PlayerObject *a1, float a2)
{
int v4; // r0
int v5; // r1
if ( a2 <= 0.0 )
return a1->m_obPosition.y;
v4 = (int)floorf(a2 / 0.01);
if ( v4 >= 199 )
v4 = 199;
v5 = a1->m_followRelated % 200;
if ( v4 >= 0 )
v5 -= v4;
return a1->m_playerFollowFloats.m_start[v5 + (v5 < 0 ? 0xC8 : 0)];
}