X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Fvis.c;h=b166c91fc4f576f46a1f964dad2c98b31d83e820;hp=fb560d511311c911499c1719e50ed63376cb1757;hb=dac8329952745dbb494bad1c301e44bab05ec0db;hpb=7fc621fc78d0e040dc2c12f38dc53dd9048215dc diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index fb560d51..b166c91f 100644 --- a/tools/quake3/q3map2/vis.c +++ b/tools/quake3/q3map2/vis.c @@ -890,7 +890,7 @@ void WritePortals( char *filename ){ ============ */ void LoadPortals( char *name ){ - int i, j, hint; + int i, j, flags; vportal_t *p; leaf_t *l; char magic[80]; @@ -964,8 +964,8 @@ void LoadPortals( char *name ){ || leafnums[1] > portalclusters ) { Error( "LoadPortals: reading portal %i", i ); } - if ( fscanf( f, "%i ", &hint ) != 1 ) { - Error( "LoadPortals: reading hint state" ); + if ( fscanf( f, "%i ", &flags ) != 1 ) { + Error( "LoadPortals: reading flags" ); } w = p->winding = NewFixedWinding( numpoints ); @@ -1001,7 +1001,8 @@ void LoadPortals( char *name ){ l->numportals++; p->num = i + 1; - p->hint = hint; + p->hint = ((flags & 1) != 0); + p->sky = ((flags & 2) != 0); p->winding = w; VectorSubtract( vec3_origin, plane.normal, p->plane.normal ); p->plane.dist = -plane.dist;