Skip to content

Commit 1b4c43d

Browse files
committed
NUKE duplicate code from FinishGenericSurface()
1 parent 4798a89 commit 1b4c43d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/engine/renderer/tr_bsp.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -800,18 +800,6 @@ static void FinishGenericSurface( dsurface_t *ds, srfGeneric_t *gen, vec3_t pt )
800800
{
801801
// set bounding sphere
802802
SphereFromBounds( gen->bounds[ 0 ], gen->bounds[ 1 ], gen->origin, &gen->radius );
803-
804-
if ( gen->surfaceType == surfaceType_t::SF_FACE )
805-
{
806-
srfSurfaceFace_t *srf = ( srfSurfaceFace_t * )gen;
807-
// take the plane normal from the lightmap vector and classify it
808-
srf->plane.normal[ 0 ] = LittleFloat( ds->lightmapVecs[ 2 ][ 0 ] );
809-
srf->plane.normal[ 1 ] = LittleFloat( ds->lightmapVecs[ 2 ][ 1 ] );
810-
srf->plane.normal[ 2 ] = LittleFloat( ds->lightmapVecs[ 2 ][ 2 ] );
811-
srf->plane.dist = DotProduct( pt, srf->plane.normal );
812-
SetPlaneSignbits( &srf->plane );
813-
srf->plane.type = PlaneTypeForNormal( srf->plane.normal );
814-
}
815803
}
816804

817805
// Generate the skybox mesh and add it to world

0 commit comments

Comments
 (0)