Author: jave27
Date: 2007-08-05 18:24:26 +0200 (Sun, 05 Aug 2007)
New Revision: 2811
Modified:
branches/pingus_sdl/src/pingus_main.cpp
Log:
Change method of setting verbosity level. The previous method crashed due to
the change in how command line arguments are processed.
Modified: branches/pingus_sdl/src/pingus_main.cpp
===================================================================
--- branches/pingus_sdl/src/pingus_main.cpp 2007-08-05 05:22:18 UTC (rev
2810)
+++ branches/pingus_sdl/src/pingus_main.cpp 2007-08-05 16:24:26 UTC (rev
2811)
@@ -384,7 +384,7 @@
std::cout << "Using demofile: " << demo_file << std::endl;
break;
case 'v':
- sscanf(argp.get_argument().c_str(), "%d", &verbose);
+ verbose++;
std::cout << "Pingus: Verbose level is " << verbose << std::endl;
break;
_______________________________________________
pingus-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pingus-cvs