]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/polylib.c
Fix by Rambetter (svn r371):
[xonotic/netradiant.git] / tools / quake3 / common / polylib.c
index b62d12ff34f762071ec6d5d17241546a54c034a3..7d5b8a83c8056a900b3280d28b0a22711af956b0 100644 (file)
@@ -253,13 +253,9 @@ winding_t *BaseWindingForPlane (vec3_t normal, vec_t dist)
                        vright[2] = normal[1];
                        break;
        }
-       CrossProduct(normal, vright, vup);
-
-       // IMPORTANT NOTE: vright and vup are NOT unit vectors at this point.
-       // However, normal, vup, and vright are pairwise perpendicular.
-
-       VectorSetLength(vup, MAX_WORLD_COORD * 2, vup);
+       // NOTE: vright is NOT a unit vector at this point.
        VectorSetLength(vright, MAX_WORLD_COORD * 2, vright);
+       CrossProduct(normal, vright, vup);
        VectorScale(normal, dist, org);
 
        w = AllocWinding(4);