mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-02 09:02:32 +00:00
t-juctions don't affect portals so don't mess with the loaded faces
This commit is contained in:
parent
dd3f9b2265
commit
d0a95aba9d
1 changed files with 1 additions and 18 deletions
|
@ -117,7 +117,7 @@ static void
|
||||||
load_faces (void)
|
load_faces (void)
|
||||||
{
|
{
|
||||||
dface_t *f;
|
dface_t *f;
|
||||||
int i, j, k, l;
|
int i, j;
|
||||||
winding_t *points;
|
winding_t *points;
|
||||||
|
|
||||||
mfaces = calloc (bsp->numfaces, sizeof (face_t));
|
mfaces = calloc (bsp->numfaces, sizeof (face_t));
|
||||||
|
@ -142,23 +142,6 @@ load_faces (void)
|
||||||
}
|
}
|
||||||
VectorCopy (vertices[v].point, points->points[j]);
|
VectorCopy (vertices[v].point, points->points[j]);
|
||||||
}
|
}
|
||||||
for (j = 0; j < points->numpoints - 2; j++) {
|
|
||||||
vec3_t v1, v2, v3;
|
|
||||||
VectorSubtract (points->points[j + 1], points->points[j], v1);
|
|
||||||
l = -1;
|
|
||||||
for (k = j + 2; k < points->numpoints; k++) {
|
|
||||||
VectorSubtract (points->points[k], points->points[j], v2);
|
|
||||||
CrossProduct (v1, v2, v3);
|
|
||||||
if (VectorLength (v3) > 0.0001)
|
|
||||||
break;
|
|
||||||
l = k;
|
|
||||||
}
|
|
||||||
if (l - j > 1) {
|
|
||||||
memmove (points->points[j + 1], points->points[l],
|
|
||||||
(points->numpoints - j) * sizeof (vec3_t));
|
|
||||||
points->numpoints -= l - j - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue