qbsp: pass hullnum into ExportClipNodes()

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-02-18 10:33:28 +10:30
parent 27252d9104
commit 53e61c28ca
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ ProcessEntity(mapentity_t *ent)
}
}
ExportNodePlanes(nodes);
ExportClipNodes(ent, nodes);
ExportClipNodes(ent, nodes, hullnum);
} else {
// SolidBSP generates a node tree
//

View File

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

View File

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