void CountVisportals_r(node_t *node)
{
- int i, s;
+ int s;
portal_t *p;
winding_t *w;
- vec3_t normal;
- vec_t dist;
// decision node
if (node->planenum != PLANENUM_LEAF) {
*/
void WritePortalFile_r (node_t *node)
{
- int i, s;
+ int i, s, flags;
portal_t *p;
winding_t *w;
vec3_t normal;
}
else
fprintf (pf,"%i %i %i ",w->numpoints, p->nodes[0]->cluster, p->nodes[1]->cluster);
+
+ flags = 0;
/* ydnar: added this change to make antiportals work */
if( p->compileFlags & C_HINT )
- fprintf( pf, "1 " );
- else
- fprintf( pf, "0 " );
+ flags |= 1;
+
+ /* divVerent: I want farplanedist to not kill skybox. So... */
+ if( p->compileFlags & C_SKY )
+ flags |= 2;
+
+ fprintf( pf, "%d ", flags );
/* write the winding */
for (i=0 ; i<w->numpoints ; i++)
void CountSolidFaces_r (node_t *node)
{
- int i, s;
+ int s;
portal_t *p;
winding_t *w;
*/
void NumberLeafs_r (node_t *node, int c)
{
+#if 0
portal_t *p;
-
+#endif
if ( node->planenum != PLANENUM_LEAF ) {
// decision node
node->cluster = -99;