go back to the `long way' for the cross product as qfvis was no longer

getting the same results as vis (that may be acceptable, but not yet:)
This commit is contained in:
Bill Currie 2002-09-26 03:58:22 +00:00
parent d25ee82838
commit 2a56b8f15f

View file

@ -107,7 +107,9 @@ ClipToSeparators (winding_t *source, winding_t *pass, winding_t *target,
for (j = 0; j < pass->numpoints; j++) {
VectorSubtract (pass->points[j], source->points[i], v2);
CrossProduct (v1, v2, plane.normal);
plane.normal[0] = v1[1] * v2[2] - v1[2] * v2[1];
plane.normal[1] = v1[2] * v2[0] - v1[0] * v2[2];
plane.normal[2] = v1[0] * v2[1] - v1[1] * v2[0];
length = DotProduct (plane.normal, plane.normal);