PrepareBoundingRadius__racesumm effectively matching
This commit is contained in:
parent
d1087a7e64
commit
e93c3d51e1
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue