-Index: brush.c\r
-===================================================================\r
---- brush.c (revision 158)\r
-+++ brush.c (working copy)\r
-@@ -78,7 +78,7 @@\r
-
-
- /* count brushes */
-- for( brushes; brushes != NULL; brushes = brushes->next )
-+ for( ; brushes != NULL; brushes = brushes->next )
- c++;
- return c;
- }
-@@ -122,7 +122,7 @@\r
-
-
- /* error check */
-- if( *((int*) b) == 0xFEFEFEFE )
-+ if( *((unsigned int*) b) == 0xFEFEFEFE )
- {
- Sys_FPrintf( SYS_VRB, "WARNING: Attempt to free an already freed brush!\n" );
- return;
-@@ -135,7 +135,7 @@\r
-
- /* ydnar: overwrite it */
- memset( b, 0xFE, (int) &(((brush_t*) 0)->sides[ b->numsides ]) );
-- *((int*) b) = 0xFEFEFEFE;
-+ *((unsigned int*) b) = 0xFEFEFEFE;
-
- /* free it */
- free( b );
-@@ -156,7 +156,7 @@\r
-
-
- /* walk brush list */
-- for( brushes; brushes != NULL; brushes = next )
-+ for( ; brushes != NULL; brushes = next )
- {
- next = brushes->next;
- FreeBrush( brushes );
-Index: bsp.c\r
-===================================================================\r
---- bsp.c (revision 158)\r
-+++ bsp.c (working copy)\r
-@@ -194,7 +194,6 @@\r
- 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' )
-@@ -531,6 +530,9 @@\r
-
- /* write fogs */
- EmitFogs();
-+
-+ /* vortex: emit meta stats */
-+ EmitMetaStats();
- }
-
-
Index: bspfile_abstract.c\r
===================================================================\r
--- bspfile_abstract.c (revision 158)\r
+ }
}
-Index: facebsp.c\r
-===================================================================\r
---- facebsp.c (revision 158)\r
-+++ facebsp.c (working copy)\r
-@@ -180,7 +180,7 @@\r
-
-
- c = 0;
-- for( list; list != NULL; list = list->next )
-+ for( ; list != NULL; list = list->next )
- c++;
- return c;
- }
Index: game_ef.h\r
===================================================================\r
--- game_ef.h (revision 158)\r
/* check if we have enough options left to attempt something */
if( argc < 2 )
-Index: map.c\r
-===================================================================\r
---- map.c (revision 158)\r
-+++ map.c (working copy)\r
-@@ -1515,14 +1515,18 @@\r
- /* get explicit shadow flags */
- GetEntityShadowFlags( mapEnt, NULL, &castShadows, &recvShadows );
-
-+ /* vortex: added _ls key (short name of lightmapscale) */
- /* ydnar: get lightmap scaling value for this entity */
- if( strcmp( "", ValueForKey( mapEnt, "lightmapscale" ) ) ||
-- strcmp( "", ValueForKey( mapEnt, "_lightmapscale" ) ) )
-+ strcmp( "", ValueForKey( mapEnt, "_lightmapscale" ) ) ||
-+ strcmp( "", ValueForKey( mapEnt, "_ls" ) ) )
- {
- /* get lightmap scale from entity */
- lightmapScale = FloatForKey( mapEnt, "lightmapscale" );
- if( lightmapScale <= 0.0f )
- lightmapScale = FloatForKey( mapEnt, "_lightmapscale" );
-+ if( lightmapScale <= 0.0f )
-+ lightmapScale = FloatForKey( mapEnt, "_ls" );
- if( lightmapScale > 0.0f )
- Sys_Printf( "Entity %d (%s) has lightmap scale of %.4f\n", mapEnt->mapEntityNum, classname, lightmapScale );
- }
-Index: mesh.c\r
-===================================================================\r
---- mesh.c (revision 158)\r
-+++ mesh.c (working copy)\r
-@@ -563,7 +563,7 @@\r
- }
-
- /* keep chopping */
-- for( iterations; iterations > 0; iterations-- )
-+ for( ; iterations > 0; iterations-- )
- {
- /* horizontal subdivisions */
- for( j = 0; j + 2 < out.width; j += 4 )
-Index: model.c\r
-===================================================================\r
---- model.c (revision 158)\r
-+++ model.c (working copy)\r
-@@ -266,7 +266,7 @@\r
- continue;
-
- /* fix the surface's normals */
-- PicoFixSurfaceNormals( surface );
-+ //PicoFixSurfaceNormals( surface );
-
- /* allocate a surface (ydnar: gs mods) */
- ds = AllocDrawSurface( SURFACE_TRIANGLES );
-@@ -521,7 +521,15 @@\r
- else
- free( buildBrush );
- }
-+ else
-+ {
-+ Sys_Printf( "WARNING: Model %s unable to generate brush - Case 1.\n", name );
-+ }
- }
-+ else
-+ {
-+ Sys_Printf( "WARNING: Model %s unable to generate brush - Case 2.\n", name );
-+ }
- }
- }
- }
-@@ -566,8 +574,11 @@\r
- }
-
- /* get lightmap scale */
-+ /* vortex: added _ls key (short name of lightmapscale) */
- baseLightmapScale = FloatForKey( e, "_lightmapscale" );
- if( baseLightmapScale <= 0.0f )
-+ baseLightmapScale = FloatForKey( e, "_ls" );
-+ if( baseLightmapScale <= 0.0f )
- baseLightmapScale = 0.0f;
-
- /* walk the entity list */
-@@ -688,8 +699,11 @@\r
- celShader = NULL;
-
- /* get lightmap scale */
-+ /* vortex: added _ls key (short name of lightmapscale) */
- lightmapScale = FloatForKey( e2, "_lightmapscale" );
- if( lightmapScale <= 0.0f )
-+ lightmapScale = FloatForKey( e2, "_ls" );
-+ if( lightmapScale <= 0.0f )
- lightmapScale = baseLightmapScale;
-
- /* insert the model */
-Index: patch.c\r
-===================================================================\r
---- patch.c (revision 158)\r
-+++ patch.c (working copy)\r
-@@ -227,7 +227,6 @@\r
- float longestCurve;
- int maxIterations;
-
--
- MatchToken( "{" );
-
- /* get texture */
-Index: path_init.c\r
-===================================================================\r
---- path_init.c (revision 158)\r
-+++ path_init.c (working copy)\r
-@@ -383,7 +383,7 @@\r
- /* remove processed arguments */
- for( i = 0, j = 0, k = 0; i < *argc && j < *argc; i++, j++ )
- {
-- for( j; j < *argc && argv[ j ] == NULL; j++ );
-+ for( ; j < *argc && argv[ j ] == NULL; j++ );
- argv[ i ] = argv[ j ];
- if( argv[ i ] != NULL )
- k++;
Index: q3map2.h\r
===================================================================\r
--- q3map2.h (revision 158)\r
/* surface_fur.c */
-@@ -1627,6 +1654,7 @@\r
- void FixMetaTJunctions( void );
- void SmoothMetaTriangles( void );
- void MergeMetaTriangles( void );
-+void EmitMetaStats(); // vortex: print meta statistics even in no-verbose mode
-
-
- /* surface_extra.c */
@@ -1704,6 +1732,12 @@\r
float DirtForSample( trace_t *trace );
void DirtyRawLightmap( int num );
subdivided = SubdivideMesh2( src, iterations ); //% ds->maxIterations
/* fit it to the curve and remove colinear verts on rows/columns */
-@@ -599,7 +617,22 @@\r
- }
-
-
-+/*
-+EmitMetaStatictics
-+vortex: prints meta statistics in general output
-+*/
-
-+void EmitMetaStats()
-+{
-+ Sys_Printf( "--- EmitMetaStats ---\n" );
-+ Sys_Printf( "%9d total meta surfaces\n", numMetaSurfaces );
-+ Sys_Printf( "%9d stripped surfaces\n", numStripSurfaces );
-+ Sys_Printf( "%9d fanned surfaces\n", numFanSurfaces );
-+ Sys_Printf( "%9d patch meta surfaces\n", numPatchMetaSurfaces );
-+ Sys_Printf( "%9d meta verts\n", numMetaVerts );
-+ Sys_Printf( "%9d meta triangles\n", numMetaTriangles );
-+}
-+
- /*
- MakeEntityMetaTriangles()
- builds meta triangles from brush faces (tristrips and fans)
@@ -652,12 +685,12 @@\r
break;