csg4.cc: refactor if() statement to match comment
This commit is contained in:
parent
30fb5ef446
commit
dffee91191
11
qbsp/csg4.cc
11
qbsp/csg4.cc
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue