From 49376dce5033897d8cbc5eee4d4b18b8f2bef83b Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sun, 24 Feb 2013 09:23:48 +1030 Subject: [PATCH] qbsp: don't generate portals on detail splits Also, compile fix for incomplete commit da3aa26ee. Signed-off-by: Kevin Shanahan --- qbsp/portals.c | 4 ++++ qbsp/qbsp.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qbsp/portals.c b/qbsp/portals.c index 7fe6ec2a..c39d967e 100644 --- a/qbsp/portals.c +++ b/qbsp/portals.c @@ -451,6 +451,10 @@ CutNodePortals_r(node_t *node) if (node->contents) return; + /* No portals on detail separators */ + if (node->detail_separator) + return; + plane = &map.planes[node->planenum]; front = node->children[0]; back = node->children[1]; diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index f0e1cf0a..ef94ed3e 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -396,7 +396,7 @@ typedef struct surface_s { vec3_t mins, maxs; bool onnode; // true if surface has already been used // as a splitting node - bool detail_separator; // true if generated by a detail brush + bool detail_separator; // true if split generated by a detail brush face_t *faces; // links to all faces on either side of the surf } surface_t;