//
// GJBaseGameLayer::updateAreaObjectLastValues from 0x473dbc to 0x473e2a (110 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetAreaObjectValues @ 0x47cd9a
// > GJBaseGameLayer::resetAreaObjectValues @ 0x47cef6
//
// 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)
{
unsigned int m_commandIndex; // r3
float m_positionX; // s14
float m_positionY; // s14
unsigned int v7; // r3
float m_scaleX; // r2
if ( !a2->m_isDecoration2 )
{
m_commandIndex = a1->m_gameState.m_commandIndex;
if ( a2->m_unk4C4 != m_commandIndex )
{
m_positionX = a2->m_positionX;
a2->m_lastPosition.x = m_positionX;
m_positionY = a2->m_positionY;
a2->m_lastPosition.y = m_positionY;
a2->m_unk4C4 = m_commandIndex;
GameObject::dirtifyObjectRect(a2);
}
v7 = a1->m_gameState.m_commandIndex;
if ( a2->m_unk4CC != v7 )
{
m_scaleX = a2->m_scaleX;
a2->m_unk4CC = v7;
a2->m_customScaleX = m_scaleX;
a2->m_customScaleY = a2->m_scaleY;
GameObject::dirtifyObjectRect(a2);
}
}
}