pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] r3480 - trunk/pingus/src


From: plouj at BerliOS
Subject: [Pingus-CVS] r3480 - trunk/pingus/src
Date: Sat, 3 Nov 2007 21:29:07 +0100

Author: plouj
Date: 2007-11-03 21:29:07 +0100 (Sat, 03 Nov 2007)
New Revision: 3480

Modified:
   trunk/pingus/src/pingus_main.cpp
Log:
added and fixed some comments


Modified: trunk/pingus/src/pingus_main.cpp
===================================================================
--- trunk/pingus/src/pingus_main.cpp    2007-11-03 11:46:15 UTC (rev 3479)
+++ trunk/pingus/src/pingus_main.cpp    2007-11-03 20:29:07 UTC (rev 3480)
@@ -427,7 +427,7 @@
             cmd_options.fast_mode.set(true);
             break;
 
-          case 334: // --maintainer_mode
+          case 334: // --maintainer-mode
             cmd_options.maintainer_mode.set(true);
             maintainer_mode = true;
             break;
@@ -682,11 +682,11 @@
         }
     }
   else if (cmd_options.credits.is_set() && cmd_options.credits.get())
-    {
+       { // just show the credits screen
       ScreenManager::instance()->push_screen(Credits::instance(), false);
     }
   else if (cmd_options.font.is_set() && cmd_options.font.get())
-    { // Font Test
+    { // run the Font Test
       if (!cmd_options.rest.is_set())
         {
           std::cout << "Error: FILE argument required" << std::endl;
@@ -700,13 +700,14 @@
   else if (cmd_options.editor.is_set() && cmd_options.editor.get())
     { // Editor
       Editor::EditorScreen* editor = new Editor::EditorScreen();
+      // optionally load a map in the editor if it was given
       if (cmd_options.rest.is_set())
         editor->load(Pathname(cmd_options.rest.get(), Pathname::SYSTEM_PATH));
 
       ScreenManager::instance()->push_screen (editor, true);
     }
   else if (cmd_options.rest.is_set())
-    {
+       { // just start the map that was passed on the command line
       ScreenManager::instance()->push_screen
         (new 
StartScreen(PLFResMgr::load_plf_from_filename(Pathname(cmd_options.rest.get(),
                                                                     
Pathname::SYSTEM_PATH))),
@@ -751,6 +752,7 @@
       init_sdl();
       init_pingus();
 
+      // start and run the actual game
       start_game();
     }
 





reply via email to

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