csg4.cc: refactor if() statement to match comment

This commit is contained in:
Eric Wasylishen 2017-06-01 19:38:16 -06:00
parent 30fb5ef446
commit dffee91191
1 changed files with 6 additions and 5 deletions

View File

@ -521,12 +521,13 @@ CSGFaces(const mapentity_t *entity)
* the clipbrush. Otherwise, these inside surfaces are hidden and
* should be discarded.
*/
if (brush->contents != CONTENTS_SOLID)
FreeFaces(inside);
else if (clipbrush->contents == CONTENTS_SOLID)
FreeFaces(inside);
else
if (brush->contents == CONTENTS_SOLID
&& clipbrush->contents != CONTENTS_SOLID)
{
SaveInsideFaces(inside, clipbrush, &outside);
} else {
FreeFaces(inside);
}
}
/*