From: Rudolf Polzer Date: Wed, 19 Jan 2011 07:02:00 +0000 (+0100) Subject: remove unnecessary code found by Rambetter X-Git-Tag: xonotic-v0.5.0~63 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=391d71d9ba8634ba775a2b094d191d9a191dc08e;p=xonotic%2Fnetradiant.git remove unnecessary code found by Rambetter --- 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