From fc5f1573efbedb4db87f2ac192a9e9066ea0882d Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 10 Jun 2022 20:00:42 -0600 Subject: [PATCH] qbsp: simplify ShouldClipbrushEatBrush fixes lavaclip test case --- include/common/bspfile.hh | 6 +++++ qbsp/csg4.cc | 49 ++++----------------------------------- 2 files changed, 11 insertions(+), 44 deletions(-) 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