From d7c1bc8d02e633cf1e452ac5899dd870ceaa3aaa Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 19 Mar 2013 16:23:47 +0900 Subject: [PATCH] Correct a comment. I had gotten confused between figuring out the windings and writing the comments, I guess. --- tools/qfvis/source/qfvis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/qfvis/source/qfvis.c b/tools/qfvis/source/qfvis.c index 3608e71f9..020d80723 100644 --- a/tools/qfvis/source/qfvis.c +++ b/tools/qfvis/source/qfvis.c @@ -134,7 +134,7 @@ PlaneFromWinding (winding_t *winding, plane_t *plane) { vec3_t v1, v2; - // calc plane using CCW winding + // calc plane using CW winding VectorSubtract (winding->points[2], winding->points[1], v1); VectorSubtract (winding->points[0], winding->points[1], v2); CrossProduct (v2, v1, plane->normal); @@ -1068,7 +1068,7 @@ LoadPortals (char *name) portal->winding = winding; VectorNegate (plane.normal, portal->plane.normal); - portal->plane.dist = -plane.dist; // plane is for CCW, portal is CW + portal->plane.dist = -plane.dist; // plane is for CW, portal is CCW portal->cluster = clusternums[1]; portal->sphere = sphere; portal++;