//
// GJBaseGameLayer::updateAreaObjectLastValues from 0x140227eb0 to 0x140227f44 (148 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetAreaObjectValues @ 0x140227c68
// > GJBaseGameLayer::resetAreaObjectValues @ 0x140227e03
//
// 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 GJBaseGameLayer::updateAreaObjectLastValues(GJBaseGameLayer *a1, GameObject *a2)
{
float m_positionY; // xmm1_4
if ( !a2->m_isDecoration2 )
{
if ( a2->m_unk4C4 != a1->m_gameState.m_commandIndex )
{
m_positionY = a2->m_positionY;
a2->m_lastPosition.x = a2->m_positionX;
a2->m_lastPosition.y = m_positionY;
a2->m_unk4C4 = a1->m_gameState.m_commandIndex;
*(_WORD *)&a2->m_isObjectRectDirty = 257;
}
if ( a2->m_unk4CC != a1->m_gameState.m_commandIndex )
{
a2->m_customScaleX = a2->m_scaleX;
a2->m_customScaleY = a2->m_scaleY;
a2->m_unk4CC = a1->m_gameState.m_commandIndex;
*(_WORD *)&a2->m_isObjectRectDirty = 257;
}
}
}