]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
nolightmapsearch by LH
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 20 May 2009 14:48:26 +0000 (14:48 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 20 May 2009 14:48:26 +0000 (14:48 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@366 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/light.c
tools/quake3/q3map2/lightmaps_ydnar.c
tools/quake3/q3map2/q3map2.h

index 9a50d825b3ab15604e3ec8d8256fa54e8296ae3f..eacfba3162800f1b34b7ab10547feb0a57ebaa82 100644 (file)
@@ -2168,6 +2168,12 @@ int LightMain( int argc, char **argv )
                        noCollapse = qtrue;
                        Sys_Printf( "Identical lightmap collapsing disabled\n" );
                }
+
+               else if( !strcmp( argv[ i ], "-nolightmapsearch" ) )
+               {
+                       noLightmapSearch = qtrue;
+                       Sys_Printf( "No lightmap searching - all lightmaps will be sequential\n" );
+               }
                
                else if( !strcmp( argv[ i ], "-shade" ) )
                {
index 8ea7aa39b9aa29be29404c7a4229e284b8ef2e02..35e81e54192dea03b6828976dfd7a7c63276b0f1 100644 (file)
@@ -2015,7 +2015,7 @@ static void FindOutLightmaps( rawLightmap_t *lm )
                        y = 0;
                        
                        /* walk the list of lightmap pages */
-                       for( i = 0; i < numOutLightmaps; i++ )
+                       for( i = noLightmapSearch ? numOutLightmaps - 2 : 0; i < numOutLightmaps; i++ )
                        {
                                /* get the output lightmap */
                                olm = &outLightmaps[ i ];
index 590b817c2abce02e361ee205976f9009dd702764..f5ab761942e128ae85b3fbd06d57d67377f07f01 100644 (file)
@@ -2179,6 +2179,7 @@ Q_EXTERN qboolean                 dark Q_ASSIGN( qfalse );
 Q_EXTERN qboolean                      sunOnly Q_ASSIGN( qfalse );
 Q_EXTERN int                           approximateTolerance Q_ASSIGN( 0 );
 Q_EXTERN qboolean                      noCollapse Q_ASSIGN( qfalse );
+Q_EXTERN qboolean                      noLightmapSearch Q_ASSIGN( qfalse );
 Q_EXTERN qboolean                      exportLightmaps Q_ASSIGN( qfalse );
 Q_EXTERN qboolean                      externalLightmaps Q_ASSIGN( qfalse );
 Q_EXTERN int                           lmCustomSize Q_ASSIGN( LIGHTMAP_WIDTH );