//
// GJBaseGameLayer::applyLevelSettings from 0x100158db0 to 0x100158df8 (72 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addSpecial @ 0x1000dfcf5
//
// 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 GJBaseGameLayer::applyLevelSettings(GJBaseGameLayer *a1, GameObject *a2)
{
bool canRotateFree; // al
bool m_fixNegativeScale; // al
canRotateFree = 1;
if ( !a1->m_allowStaticRotate )
canRotateFree = GameObject::canRotateFree(a2);
a2->m_canRotateFree = canRotateFree;
m_fixNegativeScale = a1->m_fixNegativeScale;
if ( a2->m_isMirroredByScale != m_fixNegativeScale )
a2->m_isObjectRectDirty = 1;
a2->m_isMirroredByScale = m_fixNegativeScale;
}