diff --git a/qbsp/qbsp.c b/qbsp/qbsp.c index 7af35d53..13ea2e86 100644 --- a/qbsp/qbsp.c +++ b/qbsp/qbsp.c @@ -84,7 +84,7 @@ ProcessEntity(mapentity_t *ent) } } ExportNodePlanes(nodes); - ExportClipNodes(ent, nodes); + ExportClipNodes(ent, nodes, hullnum); } else { // SolidBSP generates a node tree // diff --git a/qbsp/qbsp.h b/qbsp/qbsp.h index 438abf33..4a9c8b41 100644 --- a/qbsp/qbsp.h +++ b/qbsp/qbsp.h @@ -643,7 +643,7 @@ void PortalizeWorld(const mapentity_t *ent, node_t *headnode, const int hullnum) void TJunc(const mapentity_t *ent, node_t *headnode); node_t *SolidBSP(const mapentity_t *ent, surface_t *surfhead, bool midsplit); void MakeFaceEdges(mapentity_t *ent, node_t *headnode); -void ExportClipNodes(mapentity_t *ent, node_t *headnode); +void ExportClipNodes(mapentity_t *ent, node_t *headnode, const int hullnum); void ExportDrawNodes(mapentity_t *ent, node_t *headnode); // util.c diff --git a/qbsp/writebsp.c b/qbsp/writebsp.c index d3e5d09b..3caf9fc7 100644 --- a/qbsp/writebsp.c +++ b/qbsp/writebsp.c @@ -171,7 +171,7 @@ accomodate new data interleaved with old. ================== */ void -ExportClipNodes(mapentity_t *ent, node_t *nodes) +ExportClipNodes(mapentity_t *ent, node_t *nodes, const int hullnum) { int oldcount, i, diff; int clipcount = 0;