From 391d71d9ba8634ba775a2b094d191d9a191dc08e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 19 Jan 2011 08:02:00 +0100 Subject: [PATCH] remove unnecessary code found by Rambetter --- tools/quake3/q3map2/model.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tools/quake3/q3map2/model.c b/tools/quake3/q3map2/model.c index 74e47a8a..a56134c8 100644 --- a/tools/quake3/q3map2/model.c +++ b/tools/quake3/q3map2/model.c @@ -528,19 +528,6 @@ void InsertModel( const char *name, int skin, int frame, m4x4_t transform, remap /* copy xyz */ VectorCopy( dv->xyz, points[ j ] ); - VectorCopy( dv->xyz, backs[ j ] ); - - /* find nearest axial to normal and push back points opposite */ - /* note: this doesn't work as well as simply using the plane of the triangle, below */ - for( k = 0; k < 3; k++ ) - { - if( fabs( dv->normal[ k ] ) >= fabs( dv->normal[ (k + 1) % 3 ] ) && - fabs( dv->normal[ k ] ) >= fabs( dv->normal[ (k + 2) % 3 ] ) ) - { - backs[ j ][ k ] += dv->normal[ k ] < 0.0f ? 64.0f : -64.0f; - break; - } - } } VectorCopy( points[0], points[3] ); // for cyclic usage -- 2.39.2