diff --git a/changelog.txt b/changelog.txt index 322757e7..ef1230fb 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ Unreleased * qbsp: fixed surface edge corruption when using skip surfaces +* qbsp: fixed portal generation for transparent water and detail nodes * qbsp: added "-noskip" option for troubleshooting skip related problems * vis: fix portal stack corruption in ClipStackWinding * bsputil: added a "--check" option to check internal data consistency diff --git a/qbsp/portals.c b/qbsp/portals.c index 4bb8425a..239b0545 100644 --- a/qbsp/portals.c +++ b/qbsp/portals.c @@ -54,8 +54,8 @@ ClusterContents(const node_t *node) { int contents0, contents1; - /* Either a leaf or non-detail node */ - if (node->contents || !node->detail_separator) + /* Pass the leaf contents up the stack */ + if (node->contents) return node->contents; contents0 = ClusterContents(node->children[0]);