qbsp: replace some contents.extended reads with new is_detail_*() getters
This commit is contained in:
parent
8c1095715c
commit
014e0d8aaa
|
|
@ -858,11 +858,11 @@ static void CreateLeaf(std::vector<std::unique_ptr<brush_t>> brushes, node_t *le
|
|||
|
||||
if (leafnode->contents.extended & CFLAGS_ILLUSIONARY_VISBLOCKER) {
|
||||
c_illusionary_visblocker++;
|
||||
} else if (leafnode->contents.extended & CFLAGS_DETAIL_FENCE) {
|
||||
} else if (leafnode->contents.is_detail_fence(options.target_game)) {
|
||||
c_detail_fence++;
|
||||
} else if (leafnode->contents.extended & CFLAGS_DETAIL_ILLUSIONARY) {
|
||||
} else if (leafnode->contents.is_detail_illusionary(options.target_game)) {
|
||||
c_detail_illusionary++;
|
||||
} else if (leafnode->contents.extended & CFLAGS_DETAIL) {
|
||||
} else if (leafnode->contents.is_detail_solid(options.target_game)) {
|
||||
c_detail++;
|
||||
} else if (leafnode->contents.is_empty(options.target_game)) {
|
||||
c_empty++;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ using nlohmann::json;
|
|||
|
||||
static contentflags_t RemapContentsForExport(const contentflags_t &content)
|
||||
{
|
||||
if (content.extended & CFLAGS_DETAIL_FENCE) {
|
||||
if (content.is_detail_fence(options.target_game)) {
|
||||
/*
|
||||
* A bit of a hack for Q2, to ensure that structural faces which are completely covered by CFLAGS_DETAIL_FENCE
|
||||
* still render.
|
||||
|
|
|
|||
Loading…
Reference in New Issue