emit clipnodes in the correct order

This commit is contained in:
Bill Currie 2003-02-05 05:06:14 +00:00
parent 7073afc0a4
commit c5f7138db8

View file

@ -128,10 +128,11 @@ WriteClipNodes_r (node_t *node)
}
// emit a clipnode
c = bsp->numclipnodes;
BSP_AddClipnode (bsp, &cn);
cn.planenum = node->outputplanenum;
for (i = 0; i < 2; i++)
cn.children[i] = WriteClipNodes_r (node->children[i]);
BSP_AddClipnode (bsp, &cn);
bsp->clipnodes[c] = cn;
free (node);
return c;