From: Rudolf Polzer Date: Mon, 27 Sep 2010 07:58:22 +0000 (+0200) Subject: remove some debug code that is potentially dangerous X-Git-Tag: xonotic-v0.5.0~213 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=511f7bd2c23885b4483ab1c812e1e86c0f7f2381;p=xonotic%2Fnetradiant.git remove some debug code that is potentially dangerous --- diff --git a/tools/quake3/q3map2/surface_meta.c b/tools/quake3/q3map2/surface_meta.c index 1a803363..be61dc86 100644 --- a/tools/quake3/q3map2/surface_meta.c +++ b/tools/quake3/q3map2/surface_meta.c @@ -1090,10 +1090,6 @@ void FixMetaTJunctions( void ) /* get vert */ VectorCopy( metaVerts[ j ].xyz, pt ); - /* debug code: darken verts */ - if( i == 0 ) - VectorSet( metaVerts[ j ].color[ 0 ], 8, 8, 8 ); - /* determine if point lies in the triangle's plane */ dist = DotProduct( pt, plane ) - plane[ 3 ]; if( fabs( dist ) > TJ_PLANE_EPSILON ) @@ -1134,13 +1130,6 @@ void FixMetaTJunctions( void ) amount = dist / edges[ k ].length; #endif - /* debug code: brighten this point */ - //% metaVerts[ j ].color[ 0 ][ 0 ] += 5; - //% metaVerts[ j ].color[ 0 ][ 1 ] += 4; - VectorSet( metaVerts[ tri->indexes[ k ] ].color[ 0 ], 255, 204, 0 ); - VectorSet( metaVerts[ tri->indexes[ (k + 1) % 3 ] ].color[ 0 ], 255, 204, 0 ); - - /* the edge opposite the zero-weighted vertex was hit, so use that as an amount */ a = &metaVerts[ tri->indexes[ k % 3 ] ]; b = &metaVerts[ tri->indexes[ (k + 1) % 3 ] ];