better override lightSamplesInsist (-samples +1, +2, +3, +4 skip the samples preset loading)

This commit is contained in:
Rudolf Polzer 2010-10-22 09:41:48 +02:00
parent 91ea2ae81c
commit 4553078f35

View File

@ -2258,6 +2258,8 @@ int LightMain( int argc, char **argv )
{ {
if(*argv[i+1] == '+') if(*argv[i+1] == '+')
lightSamplesInsist = qtrue; lightSamplesInsist = qtrue;
else
lightSamplesInsist = qfalse;
lightSamples = atoi( argv[ i + 1 ] ); lightSamples = atoi( argv[ i + 1 ] );
if( lightSamples < 1 ) if( lightSamples < 1 )
lightSamples = 1; lightSamples = 1;