Correct a comment.

I had gotten confused between figuring out the windings and writing the
comments, I guess.
This commit is contained in:
Bill Currie 2013-03-19 16:23:47 +09:00
parent 8938870e46
commit d7c1bc8d02

View file

@ -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++;