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.
This commit is contained in:
ragnarok-clanker 2026-11-06 03:32:47 +00:00
commit b6198b9b2d

View file

@ -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);
}
}
}