From 53e61c28caacd7925810d8825015c294dd439d11 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Mon, 18 Feb 2013 10:33:28 +1030 Subject: [PATCH] qbsp: pass hullnum into ExportClipNodes() Signed-off-by: Kevin Shanahan --- qbsp/qbsp.c | 2 +- qbsp/qbsp.h | 2 +- qbsp/writebsp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;