From a9dd2de5ec9cc2de7d31039e47a524e84838815e Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Fri, 15 Feb 2013 18:23:15 +1030 Subject: [PATCH] qbsp: skip only the face, not brush for degenerate normals The previous code would possibly leak faces with weird effects if we iterate over the face data e.g. 0 -> map.numfaces. Signed-off-by: Kevin Shanahan --- qbsp/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbsp/map.c b/qbsp/map.c index c96b2bfd..2a46f6e7 100644 --- a/qbsp/map.c +++ b/qbsp/map.c @@ -399,7 +399,7 @@ ParseBrush(mapbrush_t *brush) CrossProduct(t1, t2, plane->normal); if (VectorCompare(plane->normal, vec3_origin)) { Message(msgWarning, warnNoPlaneNormal, linenum); - break; + continue; } VectorNormalize(plane->normal); plane->dist = DotProduct(t3, plane->normal);