q3map2: fix -samplessearchboxsize msg printing

This commit is contained in:
Garux 2017-10-27 18:18:11 +03:00
parent 81c31337b5
commit 80faa85d36

View File

@ -2487,15 +2487,12 @@ int LightMain( int argc, char **argv ){
else if ( !strcmp( argv[ i ], "-samplessearchboxsize" ) ) { else if ( !strcmp( argv[ i ], "-samplessearchboxsize" ) ) {
lightSamplesSearchBoxSize = atoi( argv[ i + 1 ] ); lightSamplesSearchBoxSize = atoi( argv[ i + 1 ] );
if ( lightSamplesSearchBoxSize <= 0 ) { // lightSamplesSearchBoxSize = MAX( MIN( lightSamplesSearchBoxSize, 4 ), 1 );
lightSamplesSearchBoxSize = 1; lightSamplesSearchBoxSize = lightSamplesSearchBoxSize < 1 ? 1
} : lightSamplesSearchBoxSize > 4 ? 4 /* more makes no sense */
if ( lightSamplesSearchBoxSize > 4 ) { : lightSamplesSearchBoxSize;
lightSamplesSearchBoxSize = 4; /* more makes no sense */ if ( lightSamplesSearchBoxSize != 1 )
}
else if ( lightSamplesSearchBoxSize != 1 ) {
Sys_Printf( "Adaptive supersampling uses %f times the normal search box size\n", lightSamplesSearchBoxSize ); Sys_Printf( "Adaptive supersampling uses %f times the normal search box size\n", lightSamplesSearchBoxSize );
}
i++; i++;
} }