@@ -199,13 +199,13 @@ void R_BoxSurfaces_r( bspNode_t *node, vec3_t mins, vec3_t maxs, surfaceType_t *
199199 else if ( * ( surf->data ) == surfaceType_t::SF_FACE )
200200 {
201201 // the face plane should go through the box
202- s = BoxOnPlaneSide ( mins, maxs, & ( ( srfSurfaceFace_t * ) surf->data )->plane );
202+ s = BoxOnPlaneSide ( mins, maxs, & ( ( srfGeneric_t * ) surf->data )->plane );
203203
204204 if ( s == 1 || s == 2 )
205205 {
206206 surf->viewCount = tr.viewCountNoReset ;
207207 }
208- else if ( DotProduct ( ( ( srfSurfaceFace_t * ) surf->data )->plane .normal , dir ) > -0.5 )
208+ else if ( DotProduct ( ( ( srfGeneric_t * ) surf->data )->plane .normal , dir ) > -0.5 )
209209 {
210210 // don't add faces that make sharp angles with the projection direction
211211 surf->viewCount = tr.viewCountNoReset ;
@@ -301,7 +301,6 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
301301 vec3_t clipPoints[ 2 ][ MAX_VERTS_ON_POLY ];
302302 int numClipPoints;
303303 float *v;
304- srfSurfaceFace_t *face;
305304 srfGridMesh_t *cv;
306305 srfVert_t *dv;
307306 srfTriangle_t *tri;
@@ -450,7 +449,7 @@ int R_MarkFragments( int numPoints, const vec3_t *points, const vec3_t projectio
450449 }
451450 else if ( *surfaces[ i ] == surfaceType_t::SF_FACE )
452451 {
453- face = ( srfSurfaceFace_t * ) surfaces[ i ];
452+ srfGeneric_t* face = ( srfGeneric_t * ) surfaces[i ];
454453
455454 // check the normal of this face
456455 if ( DotProduct ( face->plane .normal , projectionDir ) > -0.5 )
0 commit comments