//
// GameObject::setScale from 0x140198420 to 0x14019850b (235 bytes)
//
// 47 xrefs:
// > PlayerObject::setScale @ 0x1403a3930
// > ParticleGameObject::setScale @ 0x1404a10f1
// > RingObject::setScale @ 0x1404a1ff0
// > ??> @ 0x140556450
// > ??> @ 0x140556bc0
// > ??> @ 0x14055dbf8
// > ??> @ 0x14055e278
// > ??> @ 0x14060ddf0
// > ??> @ 0x14060e510
// > ??> @ 0x14060ed48
// > ??> @ 0x14060f3f0
// > ??> @ 0x14060fac0
// > ??> @ 0x140610178
// > ??> @ 0x1406108c0
// > ??> @ 0x140611858
// > ??> @ 0x140612040
// > ??> @ 0x1406126e8
// > ??> @ 0x140612d90
// > ??> @ 0x140613500
// > ??> @ 0x140614390
// > ??> @ 0x140614bc8
// > ??> @ 0x140615310
// > ??> @ 0x1406159b8
// > ??> @ 0x140616100
// > ??> @ 0x1406168c0
// > ??> @ 0x140616f68
// > ??> @ 0x140617610
// > ??> @ 0x140617d80
// > ??> @ 0x140618428
// > ??> @ 0x140618b70
// > ??> @ 0x140619610
// > ??> @ 0x140619cb8
// > ??> @ 0x14061a360
// > ??> @ 0x14061aa80
// > ??> @ 0x14061b128
// > ??> @ 0x14061b870
// > ??> @ 0x14061c008
// > ??> @ 0x14061cd58
// > ??> @ 0x14061d400
// > ??> @ 0x14061daa8
// > ??> @ 0x14061e150
// > ??> @ 0x14061e7f8
// > ??> @ 0x14061f008
// > ??> @ 0x14061f7a0
// > ??> @ 0x140678ec0
// > ??> @ 0x140678ed0
// > ??> @ 0x1406cbbe0
//
// 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 GameObject::setScale(GameObject *a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCParticleSystemQuad *m_particle; // rcx
a1->m_isOrientedBoxDirty = 1;
cocos2d::CCSprite::setScale(a1, a2);
if ( a1->m_hasFollower && a1->m_propagateScaleChanges )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
((void (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[2].isEqual)(v4);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setScale_0)(m_glowSprite);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setScale_0)(m_colorSprite);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( !a1->m_isParticleSpriteLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setScale_0)(m_particle);
}
}