PartialLoadIBSPFile( filename );
/* PartialSwapBSPFile() */
- int i, j;
- shaderInfo_t *si;
+ int i;
/* shaders (don't swap the name) */
for ( i = 0; i < numBSPShaders ; i++ )
if ( numEntities <= 0 ) {
ParseEntities();
}
-
+ int patchCount = 0;
+ bspDrawSurface_t *s;
+ for ( s = bspDrawSurfaces; s != bspDrawSurfaces + numBSPDrawSurfaces; ++s ){
+ if ( s->surfaceType == MST_PATCH )
+ ++patchCount;
+ }
/* note that this is abstracted */
Sys_Printf( "Abstracted BSP file components (*actual sizes may differ)\n" );
Sys_Printf( "%9d drawsurfaces %9d *\n",
numBSPDrawSurfaces, (int) ( numBSPDrawSurfaces * sizeof( *bspDrawSurfaces ) ) );
+ Sys_Printf( "%9d patchsurfaces \n",
+ patchCount );
Sys_Printf( "%9d drawverts %9d *\n",
numBSPDrawVerts, (int) ( numBSPDrawVerts * sizeof( *bspDrawVerts ) ) );
Sys_Printf( "%9d drawindexes %9d\n",
char *sentinel = newCommandLine + sizeof( newCommandLine ) - 1;
int i;
-if (nocmdline)
-{
- return;
-}
+ if ( nocmdline ){
+ return;
+ }
previousCommandLine = ValueForKey( &entities[0], "_q3map2_cmdline" );
if ( previousCommandLine && *previousCommandLine ) {
inpos = previousCommandLine;