Add some braces and a bit of whitespace

This commit is contained in:
Bill Currie 2010-08-30 16:09:34 +09:00
parent 69189600a4
commit 313677ee96

View file

@ -64,7 +64,7 @@ FaceSide (face_t *in, plane_t *split)
frontcount = backcount = 0; frontcount = backcount = 0;
// axial planes are fast // axial planes are fast
if (split->type < 3) if (split->type < 3) {
for (i = 0, p = inp->points[0] + split->type; i < inp->numpoints; for (i = 0, p = inp->points[0] + split->type; i < inp->numpoints;
i++, p += 3) { i++, p += 3) {
if (*p > split->dist + ON_EPSILON) { if (*p > split->dist + ON_EPSILON) {
@ -76,7 +76,8 @@ FaceSide (face_t *in, plane_t *split)
return SIDE_ON; return SIDE_ON;
backcount = 1; backcount = 1;
} }
} else }
} else {
// sloping planes take longer // sloping planes take longer
for (i = 0, p = inp->points[0]; i < inp->numpoints; i++, p += 3) { for (i = 0, p = inp->points[0]; i < inp->numpoints; i++, p += 3) {
dot = DotProduct (p, split->normal); dot = DotProduct (p, split->normal);
@ -91,6 +92,7 @@ FaceSide (face_t *in, plane_t *split)
backcount = 1; backcount = 1;
} }
} }
}
if (!frontcount) if (!frontcount)
return SIDE_BACK; return SIDE_BACK;