[PATCH] qbsp: copy face sphere attributes in NewFaceFromFace
Makes sure we maintain the sphere, e.g. in SplitFace. Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
parent
accc80ef2f
commit
1d2cc1b780
|
|
@ -60,6 +60,9 @@ NewFaceFromFace(face_t *in)
|
|||
newf->contents[0] = in->contents[0];
|
||||
newf->contents[1] = in->contents[1];
|
||||
|
||||
VectorCopy(in->origin, newf->origin);
|
||||
newf->radius = in->radius;
|
||||
|
||||
return newf;
|
||||
}
|
||||
|
||||
|
|
@ -295,8 +298,6 @@ SaveOutside(bool mirror)
|
|||
newf->planeside = f->planeside ^ 1; // reverse side
|
||||
newf->contents[0] = f->contents[1];
|
||||
newf->contents[1] = f->contents[0];
|
||||
VectorCopy(f->origin, newf->origin);
|
||||
newf->radius = f->radius;
|
||||
|
||||
for (i = 0; i < f->w.numpoints; i++) // add points backwards
|
||||
VectorCopy(f->w.points[f->w.numpoints - 1 - i], newf->w.points[i]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue