============
*/
void LoadPortals( char *name ){
- int i, j, hint;
+ int i, j, flags;
vportal_t *p;
leaf_t *l;
char magic[80];
|| 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 );
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;