level/solidbsp.c
/*	Returns a duplicated list of all faces on surface.
*/
Returns a duplicated list of all faces on surface.
Returns a duplicated list of all faces on surface .
face_t *LinkNodeFaces( surface_t *surface )
{
	face_t	*f, *list, *newf, **prevptr;
	list = NULL;
	prevptr = &surface->faces;
	for(;;)
	{
		f = *prevptr;
		if(!f)
			break;
		c_subdivides += SubdivideFace( f, prevptr );
		f = *prevptr;
		prevptr = &f->next;
	}
	for( f = surface->faces; f; f = f->next, c_nodefaces++ ) {
		newf = NewFaceFromFace( f );
		newf->winding = CopyWinding( f->winding );
		f->original = newf;
		newf->next = list;
		list = newf;
	}
	return list;
}
face_t * LinkNodeFaces ( surface_t * surface ) { face_t * f , * list , * newf , * * prevptr ; list = NULL ; prevptr = & surface -> faces ; for ( ; ; ) { f = * prevptr ; if ( ! f ) break ; c_subdivides += SubdivideFace ( f , prevptr ) ; f = * prevptr ; prevptr = & f -> next ; } for ( f = surface -> faces ; f ; f = f -> next , c_nodefaces ++ ) { newf = NewFaceFromFace ( f ) ; newf -> winding = CopyWinding ( f -> winding ) ; f -> original = newf ; newf -> next = list ; list = newf ; } return list ; }
Returns a duplicated list of all faces on surface.
Returns a duplicated list of all faces on surface .
// subdivide // copy