]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix q3map2 -scale command line parsing
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 28 Mar 2009 15:04:42 +0000 (15:04 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Sat, 28 Mar 2009 15:04:42 +0000 (15:04 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@233 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/main.c

index 69239b29cc410398e8821bf68537a28917a707fb..0229ad03f792ebd18094e3f758fc6c7ddd3fb1cf 100644 (file)
@@ -458,7 +458,7 @@ int ScaleBSPMain( int argc, char **argv )
        
        
        /* arg checking */
-       if( argc < 2 )
+       if( argc < 3 )
        {
                Sys_Printf( "Usage: q3map [-v] -scale [-tex] <value> <mapname>\n" );
                return 0;
@@ -466,9 +466,9 @@ int ScaleBSPMain( int argc, char **argv )
        
        /* get scale */
        scale[2] = scale[1] = scale[0] = atof( argv[ argc - 2 ] );
-       if(argc >= 3)
-               scale[1] = scale[0] = atof( argv[ argc - 3 ] );
        if(argc >= 4)
+               scale[1] = scale[0] = atof( argv[ argc - 3 ] );
+       if(argc >= 5)
                scale[0] = atof( argv[ argc - 4 ] );
 
        texscale = !strcmp(argv[1], "-tex");