PrepareBoundingRadius__racesumm effectively matching

This commit is contained in:
Dethrace Labs 2025-10-16 19:58:03 +13:00 committed by Dethrace Engineering Department
parent d1087a7e64
commit e93c3d51e1
1 changed files with 2 additions and 4 deletions

View File

@ -545,15 +545,13 @@ void PrepareBoundingRadius__racesumm(br_model* model) {
br_vertex* vp;
max = 0.f;
for (v = 0; v < model->nvertices; v++) {
vp = &model->vertices[v];
for (v = 0, vp = model->vertices; v < model->nvertices; v++, vp++) {
d = BrVector3LengthSquared(&vp->p);
if (d > max) {
max = d;
}
}
d = sqrt(max);
model->radius = d;
model->radius = sqrt(max);
}
// IDA: void __cdecl BuildWrecks()