pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r2811 - branches/pingus_sdl/src


From: jave27
Subject: [Pingus-CVS] r2811 - branches/pingus_sdl/src
Date: Sun, 5 Aug 2007 18:24:29 +0200

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;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]