diff --git a/include/common/bspfile.hh b/include/common/bspfile.hh index 628a5eb4..06a61f1c 100644 --- a/include/common/bspfile.hh +++ b/include/common/bspfile.hh @@ -612,6 +612,12 @@ struct contentflags_t bool is_empty(const gamedef_t *game) const; + // detail solid or structural solid + bool is_any_solid(const gamedef_t *game) const { + return is_solid(game) + || is_detail_solid(game); + } + // solid, not detail or any other extended content types bool is_solid(const gamedef_t *game) const; bool is_sky(const gamedef_t *game) const; diff --git a/qbsp/csg4.cc b/qbsp/csg4.cc index adae786e..091e20fd 100644 --- a/qbsp/csg4.cc +++ b/qbsp/csg4.cc @@ -257,54 +257,15 @@ static std::vector> SingleBrush(std::unique_ptr