From b6198b9b2d5d6eb68f88f63e2e117b0afc2c6bd7 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 03:32:47 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/World/WorldSpatialTree.cpp Batch #12955 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_17659 WorldSpatialTree::Subdivide: byte-identical - fn_17694 WorldSpatialTree::RemoveModel: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/World/WorldSpatialTree.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Contents/World/WorldSpatialTree.cpp b/Source/Contents/World/WorldSpatialTree.cpp index d69bb6ea..0b452a76 100644 --- a/Source/Contents/World/WorldSpatialTree.cpp +++ b/Source/Contents/World/WorldSpatialTree.cpp @@ -103,8 +103,8 @@ void WorldSpatialTree::Subdivide(int depth) { this->children[3]->minimum[2] = this->center[2]; this->children[3]->maximum[2] = this->maximum[2]; - for (WorldSpatialTree* child : this->children) { - child->Subdivide(depth + 1); + for (int index = 0; index < 4; ++index) { + this->children[index]->Subdivide(depth + 1); } } } @@ -297,9 +297,9 @@ void WorldSpatialTree::RemoveModel(C3dActor* model, int depth) { } } } else { - for (WorldSpatialTree* child : this->children) { - if (child) { - child->RemoveModel(model, depth + 1); + for (int index = 0; index < 4; ++index) { + if (this->children[index]) { + this->children[index]->RemoveModel(model, depth + 1); } } }