From: divverent Date: Sat, 28 Mar 2009 15:04:42 +0000 (+0000) Subject: fix q3map2 -scale command line parsing X-Git-Tag: svn-r421~187 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1f9bcaef264af02bfb7e270f2245c289e0c9287;p=xonotic%2Fnetradiant.git fix q3map2 -scale command line parsing git-svn-id: svn://svn.icculus.org/netradiant/trunk@233 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/main.c b/tools/quake3/q3map2/main.c index 69239b29..0229ad03 100644 --- a/tools/quake3/q3map2/main.c +++ b/tools/quake3/q3map2/main.c @@ -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] \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");