mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Add some braces and a bit of whitespace
This commit is contained in:
parent
69189600a4
commit
313677ee96
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
@ -105,7 +107,7 @@ FaceSide (face_t *in, plane_t *split)
|
||||||
|
|
||||||
The clipping hull BSP doesn't worry about avoiding splits
|
The clipping hull BSP doesn't worry about avoiding splits
|
||||||
*/
|
*/
|
||||||
static surface_t *
|
static surface_t *
|
||||||
ChooseMidPlaneFromList (surface_t *surfaces, vec3_t mins, vec3_t maxs)
|
ChooseMidPlaneFromList (surface_t *surfaces, vec3_t mins, vec3_t maxs)
|
||||||
{
|
{
|
||||||
int j, l;
|
int j, l;
|
||||||
|
|
Loading…
Reference in a new issue