X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=tools%2Fquake3%2Fq3map2%2Flight.c;h=20252c36a9d2b113efa943cf0f4d771722e38006;hb=ca0295d3b8e3340c18de1fe13f41265ba32612d4;hp=f14cc43c843c4f8c8efdb30d632767832898ca82;hpb=7bfd2b428ff9b8e49c2291fa94163e293d364de6;p=xonotic%2Fnetradiant.git diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index f14cc43c..20252c36 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -1780,7 +1780,7 @@ void TraceGrid( int num ){ */ ColorToBytesNonZero(color, bgp->ambient[i], gridScale * gridAmbientScale); } else { - ColorToBytes(color, bgp->ambient[i], gridScale * gridAmbientScale); + ColorToBytes( color, bgp->ambient[ i ], gridScale * gridAmbientScale ); } ColorToBytes( gp->directed[ i ], bgp->directed[ i ], gridScale ); } @@ -2045,8 +2045,8 @@ void LightWorld( const char *BSPFilePath, qboolean fastAllocate, qboolean noBoun UnparseEntities(); if ( storeForReal ) { - Sys_Printf( "Writing %s\n", BSPFilePath ); - WriteBSPFile( BSPFilePath ); + Sys_Printf( "Writing %s\n", BSPFilePath ); + WriteBSPFile( BSPFilePath ); } /* note it */ @@ -2153,7 +2153,7 @@ int LightMain( int argc, char **argv ){ const char *value; int lightmapMergeSize = 0; qboolean lightSamplesInsist = qfalse; - qboolean fastAllocate = qfalse; + qboolean fastAllocate = qtrue; qboolean noBounceStore = qfalse; /* note it */ @@ -2747,6 +2747,11 @@ int LightMain( int argc, char **argv ){ Sys_Printf( "Slow lightmap allocation mode enabled (default)\n" ); } + else if ( !strcmp( argv[ i ], "-slowallocate" ) ) { + fastAllocate = qfalse; + Sys_Printf( "Slow allocation mode enabled\n" ); + } + else if ( !strcmp( argv[ i ], "-fastgrid" ) ) { fastgrid = qtrue; Sys_Printf( "Fast grid lighting enabled\n" );