// // LevelEditorLayer::updateObjectSection from 0x1402df930 to 0x1402dfa60 (304 bytes) // // 2 xrefs: // > @ 0x140586390 // > @ 0x1406d3548 // // 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 LevelEditorLayer::updateObjectSection(LevelEditorLayer *a1, GameObject *a2) { int m_outerSectionIndex; // eax double m_positionX; // xmm3_8 double v6; // xmm0_8 double v7; // xmm1_8 float m_sectionXFactor; // xmm2_4 double m_positionY; // xmm2_8 int v10; // ecx float m_sectionYFactor; // xmm1_4 int v12; // eax int m_middleSectionIndex; // eax if ( !a1->m_startOptimization || a2->m_objectID == 1816 ) { m_outerSectionIndex = a2->m_outerSectionIndex; if ( m_outerSectionIndex >= 0 ) { m_positionX = a2->m_positionX; v6 = 0.0; if ( m_positionX > 0.0 ) { m_sectionXFactor = a1->m_sectionXFactor; if ( m_positionX < 10000000.0 ) v7 = m_sectionXFactor * m_positionX; else v7 = (float)(m_sectionXFactor * 10000000.0); } else { v7 = 0.0; } m_positionY = a2->m_positionY; v10 = (int)v7; if ( m_positionY > 0.0 ) { m_sectionYFactor = a1->m_sectionYFactor; if ( m_positionY < 10000000.0 ) v6 = m_sectionYFactor * m_positionY; else v6 = (float)(m_sectionYFactor * 10000000.0); } if ( v10 != m_outerSectionIndex || (int)v6 != a2->m_middleSectionIndex ) { GJBaseGameLayer::removeObjectFromSection(a1, a2); a1->addToSection(a1, a2); if ( a2->m_isActivated ) { v12 = a2->m_outerSectionIndex; if ( v12 > a1->m_rightSectionIndex || v12 < a1->m_leftSectionIndex || (m_middleSectionIndex = a2->m_middleSectionIndex, m_middleSectionIndex > a1->m_topSectionIndex) || m_middleSectionIndex < a1->m_bottomSectionIndex ) { cocos2d::CCDictionary::setObject(a1->m_objectsToDeactivate, a2, (unsigned int)a2->m_uniqueID); a2->m_unk3ee = 1; } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source