From 1f5a43f75d6a14c7d850588284c865db53c6ad20 Mon Sep 17 00:00:00 2001 From: rpolzer Date: Sat, 11 Oct 2008 19:42:15 +0000 Subject: [PATCH] remove beeps, fix -dirt* options complaining about invalud option "2" git-svn-id: svn://svn.icculus.org/netradiant/trunk@116 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/bsp.c | 2 +- tools/quake3/q3map2/light.c | 6 +++++- tools/quake3/q3map2/vis.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index 9ffa033a..2b29ff5e 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -864,7 +864,7 @@ int BSPMain( int argc, char **argv ) Sys_Printf( "-bsp argument unnecessary\n" ); else { - Sys_Printf( "WARNING: Unknown option \"%s\"\a\n", argv[ i ] ); + Sys_Printf( "WARNING: Unknown option \"%s\"\n", argv[ i ] ); } } diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 2c8d6a71..8fbfd1e1 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -2300,6 +2300,7 @@ int LightMain( int argc, char **argv ) Sys_Printf( "Enabling randomized dirtmapping\n" ); else Sys_Printf( "Enabling ordered dir mapping\n" ); + i++; } else if( !strcmp( argv[ i ], "-dirtdepth" ) ) { @@ -2307,6 +2308,7 @@ int LightMain( int argc, char **argv ) if( dirtDepth <= 0.0f ) dirtDepth = 128.0f; Sys_Printf( "Dirtmapping depth set to %.1f\n", dirtDepth ); + i++; } else if( !strcmp( argv[ i ], "-dirtscale" ) ) { @@ -2314,6 +2316,7 @@ int LightMain( int argc, char **argv ) if( dirtScale <= 0.0f ) dirtScale = 1.0f; Sys_Printf( "Dirtmapping scale set to %.1f\n", dirtScale ); + i++; } else if( !strcmp( argv[ i ], "-dirtgain" ) ) { @@ -2321,6 +2324,7 @@ int LightMain( int argc, char **argv ) if( dirtGain <= 0.0f ) dirtGain = 1.0f; Sys_Printf( "Dirtmapping gain set to %.1f\n", dirtGain ); + i++; } else if( !strcmp( argv[ i ], "-trianglecheck" ) ) { @@ -2333,7 +2337,7 @@ int LightMain( int argc, char **argv ) /* unhandled args */ else { - Sys_Printf( "WARNING: Unknown argument \"%s\"\a\n", argv[ i ] ); + Sys_Printf( "WARNING: Unknown argument \"%s\"\n", argv[ i ] ); } } diff --git a/tools/quake3/q3map2/vis.c b/tools/quake3/q3map2/vis.c index bfb3fe34..dc764ba8 100644 --- a/tools/quake3/q3map2/vis.c +++ b/tools/quake3/q3map2/vis.c @@ -1075,7 +1075,7 @@ int VisMain (int argc, char **argv) else { - Sys_Printf( "WARNING: Unknown option \"%s\"\a\n", argv[ i ] ); + Sys_Printf( "WARNING: Unknown option \"%s\"\n", argv[ i ] ); } } -- 2.39.2