From: Rudolf Polzer Date: Sat, 1 Jan 2011 19:19:57 +0000 (+0100) Subject: fix these options more X-Git-Tag: xonotic-v0.5.0~72 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f04ed28bf997d9ad4cb0d3a624e42f3b7267bac;p=xonotic%2Fnetradiant.git fix these options more --- diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 389da27a..9323b8c8 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -2184,20 +2184,20 @@ int LightMain( int argc, char **argv ) else if( !strcmp( argv[ i ], "-griddirectionality" ) ) { f = atof( argv[ i + 1 ] ); - if(f < gridAmbientDirectionality) f = gridAmbientDirectionality; if(f > 1) f = 1; + if(f < gridAmbientDirectionality) gridAmbientDirectionality = f; Sys_Printf( "Grid directionality is %f\n", f ); - gridDirectionality *= f; + gridDirectionality = f; i++; } else if( !strcmp( argv[ i ], "-gridambientdirectionality" ) ) { f = atof( argv[ i + 1 ] ); - if(f > gridDirectionality) f = gridDirectionality; - if(f < 0) f = 0; + if(f < -1) f = -1; + if(f > gridDirectionality) gridDirectionality = f; Sys_Printf( "Grid ambient directionality is %f\n", f ); - gridAmbientDirectionality *= f; + gridAmbientDirectionality = f; i++; }