qbsp: don't generate portals on detail splits

Also, compile fix for incomplete commit da3aa26ee.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-24 09:23:48 +10:30
parent 3123d51db5
commit 49376dce50
2 changed files with 5 additions and 1 deletions

View File

@ -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];

View File

@ -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;