]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix these options more
authorRudolf Polzer <divverent@alientrap.org>
Sat, 1 Jan 2011 19:19:57 +0000 (20:19 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 1 Jan 2011 19:19:57 +0000 (20:19 +0100)
tools/quake3/q3map2/light.c

index 389da27a4996201ac1e059c4e360ba637cc3695a..9323b8c8e3b7a4430244b7b6c12354b92466c6df 100644 (file)
@@ -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++;
                }