From 01d635a135115d90a2864b39c2d8accf455d05db Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sat, 27 Jan 2018 21:02:08 +0100 Subject: [PATCH] tools: reduce diff noise --- libs/picomodel/lwo/lwo2.c | 4 ++-- tools/quake3/common/aselib.c | 1 - tools/quake3/common/cmdlib.c | 4 +++- tools/quake3/common/imagelib.c | 4 +--- tools/quake3/common/inout.c | 2 +- tools/quake3/common/jpeg.c | 4 ++-- tools/quake3/common/mutex.c | 1 - tools/quake3/common/polylib.c | 1 - tools/quake3/common/scriplib.c | 3 +-- tools/quake3/common/threads.c | 1 + tools/quake3/common/vfs.c | 8 ++++---- tools/quake3/q3map2/brush.c | 2 ++ tools/quake3/q3map2/bsp.c | 1 - tools/quake3/q3map2/bspfile_abstract.c | 1 - tools/quake3/q3map2/exportents.c | 4 ++-- tools/quake3/q3map2/image.c | 8 ++++---- tools/quake3/q3map2/leakfile.c | 2 +- tools/quake3/q3map2/light.c | 14 +------------- tools/quake3/q3map2/light_bounce.c | 4 +++- tools/quake3/q3map2/light_ydnar.c | 3 +-- tools/quake3/q3map2/lightmaps_ydnar.c | 1 - tools/quake3/q3map2/map.c | 4 ++-- tools/quake3/q3map2/patch.c | 1 - tools/quake3/q3map2/path_init.c | 7 ++++--- tools/quake3/q3map2/prtfile.c | 1 + tools/quake3/q3map2/shaders.c | 2 -- tools/quake3/q3map2/surface.c | 2 -- tools/quake3/q3map2/surface_meta.c | 4 +--- tools/quake3/q3map2/tjunction.c | 7 +++---- 29 files changed, 40 insertions(+), 61 deletions(-) diff --git a/libs/picomodel/lwo/lwo2.c b/libs/picomodel/lwo/lwo2.c index f600461d..46cb43ad 100644 --- a/libs/picomodel/lwo/lwo2.c +++ b/libs/picomodel/lwo/lwo2.c @@ -321,7 +321,7 @@ Fail: } int lwValidateObject( const char *filename, picoMemStream_t *fp, unsigned int *failID, int *failpos ){ - unsigned int id, formsize, type; + unsigned int id, type; /* open the file */ @@ -333,7 +333,7 @@ int lwValidateObject( const char *filename, picoMemStream_t *fp, unsigned int *f set_flen( 0 ); id = getU4( fp ); - formsize = getU4( fp ); + /* formsize = */ getU4( fp ); type = getU4( fp ); if ( 12 != get_flen() ) { return PICO_PMV_ERROR_SIZE; diff --git a/tools/quake3/common/aselib.c b/tools/quake3/common/aselib.c index b93ea81d..6917fba0 100644 --- a/tools/quake3/common/aselib.c +++ b/tools/quake3/common/aselib.c @@ -19,7 +19,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "aselib.h" #include "inout.h" diff --git a/tools/quake3/common/cmdlib.c b/tools/quake3/common/cmdlib.c index 3bcc74c6..04f3c740 100644 --- a/tools/quake3/common/cmdlib.c +++ b/tools/quake3/common/cmdlib.c @@ -297,7 +297,9 @@ void Q_getwd( char *out ){ strcat( out, "\\" ); #else // Gef: Changed from getwd() to getcwd() to avoid potential buffer overflow - if( !getcwd ( out, 256 ) ) *out = 0; + if ( !getcwd( out, 256 ) ) { + *out = 0; + } strcat( out, "/" ); #endif while ( out[i] != 0 ) diff --git a/tools/quake3/common/imagelib.c b/tools/quake3/common/imagelib.c index a3c145ef..b6fba38d 100644 --- a/tools/quake3/common/imagelib.c +++ b/tools/quake3/common/imagelib.c @@ -683,7 +683,6 @@ void WritePCXfile( const char *filename, byte *data, void LoadBMP( const char *filename, byte **pic, byte **palette, int *width, int *height ){ byte *out; int i; - int bfSize; int bfOffBits; int structSize; int bcWidth; @@ -705,7 +704,7 @@ void LoadBMP( const char *filename, byte **pic, byte **palette, int *width, int Error( "%s is not a bmp file", filename ); } - bfSize = bufLittleLong( in, len, &pos ); + /* bfSize = */ bufLittleLong( in, len, &pos ); bufLittleShort( in, len, &pos ); bufLittleShort( in, len, &pos ); bfOffBits = bufLittleLong( in, len, &pos ); @@ -756,7 +755,6 @@ void LoadBMP( const char *filename, byte **pic, byte **palette, int *width, int } else { Error( "%s had strange struct size", filename ); - return; } if ( bcPlanes != 1 ) { diff --git a/tools/quake3/common/inout.c b/tools/quake3/common/inout.c index b070a4ab..be828818 100644 --- a/tools/quake3/common/inout.c +++ b/tools/quake3/common/inout.c @@ -242,7 +242,7 @@ void Broadcast_Setup( const char *dest ){ char sMsg[1024]; Net_Setup(); - Net_StringToAddress( (char *)dest, &address ); + Net_StringToAddress( dest, &address ); brdcst_socket = Net_Connect( &address, 0 ); if ( brdcst_socket ) { // send in a header diff --git a/tools/quake3/common/jpeg.c b/tools/quake3/common/jpeg.c index 4cc88afa..2a3026ca 100644 --- a/tools/quake3/common/jpeg.c +++ b/tools/quake3/common/jpeg.c @@ -287,13 +287,13 @@ static void j_putRGBAScanline( unsigned char* jpegline, int widthPix, unsigned c for ( count = 0; count < widthPix; count++ ) { - unsigned char iRed, iBlu, iGrn, iAlp; + unsigned char iRed, iBlu, iGrn /* , iAlp */; unsigned char *oRed, *oBlu, *oGrn, *oAlp; iRed = *( jpegline + count * 4 + 0 ); iGrn = *( jpegline + count * 4 + 1 ); iBlu = *( jpegline + count * 4 + 2 ); - iAlp = *( jpegline + count * 4 + 3 ); + /* iAlp = *( jpegline + count * 4 + 3 ); */ oRed = outBuf + offset + count * 4 + 0; oGrn = outBuf + offset + count * 4 + 1; diff --git a/tools/quake3/common/mutex.c b/tools/quake3/common/mutex.c index c9242f11..b0732d10 100644 --- a/tools/quake3/common/mutex.c +++ b/tools/quake3/common/mutex.c @@ -19,7 +19,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #include "cmdlib.h" #include "qthreads.h" #include "mutex.h" diff --git a/tools/quake3/common/polylib.c b/tools/quake3/common/polylib.c index b2b56a04..ae565988 100644 --- a/tools/quake3/common/polylib.c +++ b/tools/quake3/common/polylib.c @@ -19,7 +19,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ - #include #include "cmdlib.h" diff --git a/tools/quake3/common/scriplib.c b/tools/quake3/common/scriplib.c index d0e533cb..3c91386c 100644 --- a/tools/quake3/common/scriplib.c +++ b/tools/quake3/common/scriplib.c @@ -306,12 +306,11 @@ skipspace: ============== */ qboolean TokenAvailable( void ) { - int oldLine, oldScriptLine; + int oldLine; qboolean r; /* save */ oldLine = scriptline; - oldScriptLine = script->line; /* test */ r = GetToken( qtrue ); diff --git a/tools/quake3/common/threads.c b/tools/quake3/common/threads.c index f62432c9..eefa3484 100644 --- a/tools/quake3/common/threads.c +++ b/tools/quake3/common/threads.c @@ -424,6 +424,7 @@ void ThreadSetDefault( void ){ /* default to one thread, only multi-thread when specifically told to */ numthreads = 1; } + if ( numthreads > 1 ) { Sys_Printf( "threads: %d\n", numthreads ); } diff --git a/tools/quake3/common/vfs.c b/tools/quake3/common/vfs.c index 2092b77f..f1f80435 100644 --- a/tools/quake3/common/vfs.c +++ b/tools/quake3/common/vfs.c @@ -146,7 +146,8 @@ static void vfsInitPakFile( const char *filename ){ g_pakFiles = g_slist_append( g_pakFiles, file ); vfsFixDOSName( filename_inzip ); - filename_lower = g_ascii_strdown( filename_inzip, -1 );//-1 null terminated string + //-1 null terminated string + filename_lower = g_ascii_strdown( filename_inzip, -1 ); file->name = strdup( filename_lower ); file->size = file_info.uncompressed_size; @@ -197,7 +198,6 @@ void vfsInitDirectory( const char *path ){ dirlist = g_strdup( name ); { - char *ext = strrchr( dirlist, '.' ); if ( ext != NULL && ( !Q_stricmp( ext, ".pk3dir" ) || !Q_stricmp( ext, ".dpkdir" ) ) ) { @@ -289,7 +289,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){ f = fopen( filename, "rb" ); if ( f == NULL ) { - fclose(f); + fclose( f ); return -1; } @@ -299,7 +299,7 @@ int vfsLoadFile( const char *filename, void **bufferptr, int index ){ *bufferptr = safe_malloc( len + 1 ); if ( *bufferptr == NULL ) { - fclose(f); + fclose( f ); return -1; } diff --git a/tools/quake3/q3map2/brush.c b/tools/quake3/q3map2/brush.c index ff429a33..c72667c9 100644 --- a/tools/quake3/q3map2/brush.c +++ b/tools/quake3/q3map2/brush.c @@ -277,6 +277,8 @@ void SnapWeldVector( vec3_t a, vec3_t b, vec3_t out ){ } } + + /* ================== SnapWeldVectorAccu diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index 5810d611..eb615e61 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -270,7 +270,6 @@ void ProcessWorldModel( void ){ char level[ 2 ], shader[ 1024 ]; const char *value; - /* sets integer blockSize from worldspawn "_blocksize" key if it exists */ value = ValueForKey( &entities[ 0 ], "_blocksize" ); if ( value[ 0 ] == '\0' ) { diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index 3f464e2c..31bea007 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -821,7 +821,6 @@ entity_t *FindTargetEntity( const char *target ){ void GetEntityShadowFlags( const entity_t *ent, const entity_t *ent2, int *castShadows, int *recvShadows ){ const char *value; - /* get cast shadows */ if ( castShadows != NULL ) { value = ValueForKey( ent, "_castShadows" ); diff --git a/tools/quake3/q3map2/exportents.c b/tools/quake3/q3map2/exportents.c index 16bcb755..3140e4d7 100644 --- a/tools/quake3/q3map2/exportents.c +++ b/tools/quake3/q3map2/exportents.c @@ -64,8 +64,8 @@ void ExportEntities( void ){ /* sanity check */ if ( bspEntDataSize == 0 ) { - Sys_FPrintf( SYS_WRN, "WARNING: No BSP entity data. aborting...\n" ); - return; + Sys_FPrintf( SYS_WRN, "WARNING: No BSP entity data. aborting...\n" ); + return; } /* write it */ diff --git a/tools/quake3/q3map2/image.c b/tools/quake3/q3map2/image.c index 398455c6..f719deec 100644 --- a/tools/quake3/q3map2/image.c +++ b/tools/quake3/q3map2/image.c @@ -122,7 +122,7 @@ void PNGReadData( png_struct *png, png_byte *buffer, png_size_t size ){ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, int *height ){ png_struct *png; png_info *info, *end; - pngBuffer_t pb; + pngBuffer_t pb; int bitDepth, colorType, channels; png_uint_32 w, h, i; byte **rowPointers; @@ -165,9 +165,9 @@ static void LoadPNGBuffer( byte *buffer, int size, byte **pixels, int *width, in } /* set read callback */ - pb.buffer = buffer; - pb.size = size; - pb.offset = 0; + pb.buffer = buffer; + pb.size = size; + pb.offset = 0; png_set_read_fn( png, (void*)&pb, PNGReadData ); /* set error longjmp */ diff --git a/tools/quake3/q3map2/leakfile.c b/tools/quake3/q3map2/leakfile.c index 5d448ba5..b02e5170 100644 --- a/tools/quake3/q3map2/leakfile.c +++ b/tools/quake3/q3map2/leakfile.c @@ -43,7 +43,7 @@ LEAK FILE GENERATION - Save out name.line for qe3 to read + Save out name.lin for qe3 to read ============================================================================== */ diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 17ce34ed..c01d7209 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -794,7 +794,6 @@ int LightContributionToSample( trace_t *trace ){ float d; vec3_t pushedOrigin; - /* project sample point into light plane */ d = DotProduct( trace->origin, light->normal ) - light->dist; if ( d < 3.0f ) { @@ -919,7 +918,6 @@ int LightContributionToSample( trace_t *trace ){ float distByNormal, radiusAtDist, sampleRadius; vec3_t pointAtDist, distToSample; - /* do cone calculation */ distByNormal = -DotProduct( trace->displacement, light->normal ); if ( distByNormal < 0.0f ) { @@ -1316,7 +1314,6 @@ void TraceGrid( int num ){ contribution_t contributions[ MAX_CONTRIBUTIONS ]; trace_t trace; - /* get grid points */ gp = &rawGridPoints[ num ]; bgp = &bspGridPoints[ num ]; @@ -1507,6 +1504,7 @@ void TraceGrid( int num ){ if ( color[ j ] < minGridLight[ j ] ) { color[ j ] = minGridLight[ j ]; } + ColorToBytes( color, bgp->ambient[ i ], 1.0f ); ColorToBytes( gp->directed[ i ], bgp->directed[ i ], 1.0f ); } @@ -1724,10 +1722,6 @@ void LightWorld( void ){ /* dirty them up */ if ( dirty ) { Sys_Printf( "--- DirtyRawLightmap ---\n" ); - - - - RunThreadsOnIndividual( numRawLightmaps, qtrue, DirtyRawLightmap ); } @@ -1954,12 +1948,6 @@ int LightMain( int argc, char **argv ){ Sys_Printf( "Dark lightmap seams enabled\n" ); } - - - - - - else if ( !strcmp( argv[ i ], "-shadeangle" ) ) { shadeAngleDegrees = atof( argv[ i + 1 ] ); if ( shadeAngleDegrees < 0.0f ) { diff --git a/tools/quake3/q3map2/light_bounce.c b/tools/quake3/q3map2/light_bounce.c index 2a171ed2..7b428e11 100644 --- a/tools/quake3/q3map2/light_bounce.c +++ b/tools/quake3/q3map2/light_bounce.c @@ -257,7 +257,6 @@ static void RadSample( int lightmapNum, bspDrawSurface_t *ds, rawLightmap_t *lm, float st[ 2 ], lightmap[ 2 ], *radLuxel; radVert_t *rv[ 3 ]; - /* initial setup */ ClearBounds( mins, maxs ); VectorClear( average ); @@ -544,6 +543,9 @@ static void RadSubdivideDiffuseLight( int lightmapNum, bspDrawSurface_t *ds, raw /* bouncing light? */ if ( !bouncing ) { + /* This is weird. This actually handles surfacelight and not + * bounces. */ + /* handle first-pass lights in normal q3a style */ value = si->value; light->photons = value * area * areaScale; diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 044585eb..117167c2 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -2274,8 +2274,6 @@ void IlluminateRawLightmap( int rawLightmapNum ){ { /* get cluster */ cluster = SUPER_CLUSTER( x, y ); - //% if( *cluster < 0 ) - //% continue; /* get particulars */ luxel = SUPER_LUXEL( lightmapNum, x, y ); @@ -2323,6 +2321,7 @@ void IlluminateRawLightmap( int rawLightmapNum ){ ( lm->splotchFix && ( luxel[ 0 ] <= ambientColor[ 0 ] || luxel[ 1 ] <= ambientColor[ 1 ] || luxel[ 2 ] <= ambientColor[ 2 ] ) ) ) { filterColor = qtrue; } + if ( deluxemap && lightmapNum == 0 && ( *cluster < 0 || filter ) ) { filterDir = qtrue; } diff --git a/tools/quake3/q3map2/lightmaps_ydnar.c b/tools/quake3/q3map2/lightmaps_ydnar.c index df460874..e8114380 100644 --- a/tools/quake3/q3map2/lightmaps_ydnar.c +++ b/tools/quake3/q3map2/lightmaps_ydnar.c @@ -38,7 +38,6 @@ - /* ------------------------------------------------------------------------------- this file contains code that doe lightmap allocation and projection that diff --git a/tools/quake3/q3map2/map.c b/tools/quake3/q3map2/map.c index e50eae34..1bd3bcb3 100644 --- a/tools/quake3/q3map2/map.c +++ b/tools/quake3/q3map2/map.c @@ -44,7 +44,7 @@ #define USE_HASHING #define PLANE_HASHES 8192 -plane_t *planehash[ PLANE_HASHES ]; +plane_t *planehash[ PLANE_HASHES ]; int c_boxbevels; int c_edgebevels; @@ -308,6 +308,7 @@ void SnapPlaneImproved( vec3_t normal, vec_t *dist, int numPoints, const vec3_t } + /* FindFloatPlane() ydnar: changed to allow a number of test points to be supplied that @@ -1278,7 +1279,6 @@ void AdjustBrushesForOrigin( entity_t *ent ){ brush_t *b; parseMesh_t *p; - /* walk brush list */ for ( b = ent->brushes; b != NULL; b = b->next ) { diff --git a/tools/quake3/q3map2/patch.c b/tools/quake3/q3map2/patch.c index af666d1f..3b3949ce 100644 --- a/tools/quake3/q3map2/patch.c +++ b/tools/quake3/q3map2/patch.c @@ -231,7 +231,6 @@ void ParsePatch( qboolean onlyLights ){ float longestCurve; int maxIterations; - MatchToken( "{" ); /* get texture */ diff --git a/tools/quake3/q3map2/path_init.c b/tools/quake3/q3map2/path_init.c index 59767f57..ba5a16d9 100644 --- a/tools/quake3/q3map2/path_init.c +++ b/tools/quake3/q3map2/path_init.c @@ -98,10 +98,11 @@ void LokiInitPaths( char *argv0 ){ /* this is kinda crap, but hey */ strcpy( installPath, "../" ); #else + char temp[ MAX_OS_PATH ]; - char *home; - char *path; - char *last; + char *home; + char *path; + char *last; qboolean found; diff --git a/tools/quake3/q3map2/prtfile.c b/tools/quake3/q3map2/prtfile.c index ce8da917..eeb3a800 100644 --- a/tools/quake3/q3map2/prtfile.c +++ b/tools/quake3/q3map2/prtfile.c @@ -102,6 +102,7 @@ void WritePortalFile_r( node_t *node ){ // plane the same way vis will, and flip the side orders if needed // FIXME: is this still relevent? WindingPlane( w, normal, &dist ); + if ( DotProduct( p->plane.normal, normal ) < 0.99 ) { // backwards... fprintf( pf,"%i %i %i ",w->numpoints, p->nodes[1]->cluster, p->nodes[0]->cluster ); } diff --git a/tools/quake3/q3map2/shaders.c b/tools/quake3/q3map2/shaders.c index 1477e68b..153f3daa 100644 --- a/tools/quake3/q3map2/shaders.c +++ b/tools/quake3/q3map2/shaders.c @@ -806,7 +806,6 @@ shaderInfo_t *ShaderInfoForShader( const char *shaderName ){ shaderInfo_t *si; char shader[ MAX_QPATH ]; - /* dummy check */ if ( shaderName == NULL || shaderName[ 0 ] == '\0' ) { Sys_FPrintf( SYS_WRN, "WARNING: Null or empty shader name\n" ); @@ -1332,7 +1331,6 @@ static void ParseShaderFile( const char *filename ){ else if ( !Q_stricmp( token, "q3map_surfacemodel" ) ) { surfaceModel_t *model; - /* allocate new model and attach it */ model = safe_malloc( sizeof( *model ) ); memset( model, 0, sizeof( *model ) ); diff --git a/tools/quake3/q3map2/surface.c b/tools/quake3/q3map2/surface.c index e262c579..89726e3f 100644 --- a/tools/quake3/q3map2/surface.c +++ b/tools/quake3/q3map2/surface.c @@ -2538,7 +2538,6 @@ void EmitPatchSurface( mapDrawSurface_t *ds ){ if ( ds->backSide || ds->shaderInfo->invert ) { bspDrawVert_t *dv1, *dv2, temp; - /* walk the verts, flip the normal */ for ( i = 0; i < ds->numVerts; i++ ) VectorScale( ds->verts[ i ].normal, -1.0f, ds->verts[ i ].normal ); @@ -2755,7 +2754,6 @@ static void EmitTriangleSurface( mapDrawSurface_t *ds ){ int i, temp; bspDrawSurface_t *out; - /* invert the surface if necessary */ if ( ds->backSide || ds->shaderInfo->invert ) { /* walk the indexes, reverse the triangle order */ diff --git a/tools/quake3/q3map2/surface_meta.c b/tools/quake3/q3map2/surface_meta.c index d72ed857..a584429b 100644 --- a/tools/quake3/q3map2/surface_meta.c +++ b/tools/quake3/q3map2/surface_meta.c @@ -316,7 +316,6 @@ void TriangulatePatchSurface( mapDrawSurface_t *ds ){ mapDrawSurface_t *dsNew; mesh_t src, *subdivided, *mesh; - /* try to early out */ if ( ds->numVerts == 0 || ds->type != SURFACE_PATCH || patchMeta == qfalse ) { return; @@ -854,7 +853,6 @@ void FixMetaTJunctions( void ){ 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 ] ]; @@ -945,7 +943,6 @@ void SmoothMetaTriangles( void ){ int indexes[ MAX_SAMPLES ]; vec3_t votes[ MAX_SAMPLES ]; - /* note it */ Sys_FPrintf( SYS_VRB, "--- SmoothMetaTriangles ---\n" ); @@ -973,6 +970,7 @@ void SmoothMetaTriangles( void ){ else{ shadeAngle = defaultShadeAngle; } + if ( shadeAngle > maxShadeAngle ) { maxShadeAngle = shadeAngle; } diff --git a/tools/quake3/q3map2/tjunction.c b/tools/quake3/q3map2/tjunction.c index 033f8569..317a0a36 100644 --- a/tools/quake3/q3map2/tjunction.c +++ b/tools/quake3/q3map2/tjunction.c @@ -55,7 +55,8 @@ typedef struct edgeLine_s { vec3_t origin; vec3_t dir; - edgePoint_t chain; // unused element of doubly linked list + // unused element of doubly linked list + edgePoint_t chain; } edgeLine_t; typedef struct { @@ -67,7 +68,6 @@ typedef struct { originalEdge_t originalEdges[MAX_ORIGINAL_EDGES]; int numOriginalEdges; - #define MAX_EDGE_LINES 0x10000 edgeLine_t edgeLines[MAX_EDGE_LINES]; int numEdgeLines; @@ -381,7 +381,7 @@ void FixSurfaceJunctions( mapDrawSurface_t *ds ) { p = e->chain.prev; } - for ( ; p != &e->chain ; ) { + for ( ; p != &e->chain ; ) { if ( start < end ) { if ( p->intercept > end - ON_EPSILON ) { break; @@ -636,7 +636,6 @@ void FixTJunctions( entity_t *ent ){ int axialEdgeLines; originalEdge_t *e; - /* meta mode has its own t-junction code (currently not as good as this code) */ //% if( meta ) //% return;