X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fprtfile.c;h=e3759c0cd0a3cb06bdfe41d0b2e54bd81f768065;hb=34d45e210f74edf0690df413b45cc7630d91bd01;hp=7108c58973046080aa8a2815e42ebc4638ff1522;hpb=e2b0ecdcfb93b550f96eeec9c4263248539d0c6d;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/q3map2/prtfile.c b/tools/quake3/q3map2/prtfile.c index 7108c589..e3759c0c 100644 --- a/tools/quake3/q3map2/prtfile.c +++ b/tools/quake3/q3map2/prtfile.c @@ -65,11 +65,9 @@ void WriteFloat (FILE *f, vec_t v) 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) { @@ -104,7 +102,7 @@ WritePortalFile_r */ void WritePortalFile_r (node_t *node) { - int i, s; + int i, s, flags; portal_t *p; winding_t *w; vec3_t normal; @@ -146,12 +144,18 @@ void WritePortalFile_r (node_t *node) } 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 ; inumpoints ; i++) @@ -170,7 +174,7 @@ void WritePortalFile_r (node_t *node) void CountSolidFaces_r (node_t *node) { - int i, s; + int s; portal_t *p; winding_t *w; @@ -273,8 +277,9 @@ NumberLeafs_r */ void NumberLeafs_r (node_t *node, int c) { +#if 0 portal_t *p; - +#endif if ( node->planenum != PLANENUM_LEAF ) { // decision node node->cluster = -99;