pingus-cvs
[Top][All Lists]
Advanced

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

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


From: plouj at BerliOS
Subject: [Pingus-CVS] r3682 - trunk/pingus/src
Date: Sat, 5 Jul 2008 04:54:11 +0200

Author: plouj
Date: 2008-07-05 04:54:10 +0200 (Sat, 05 Jul 2008)
New Revision: 3682

Modified:
   trunk/pingus/src/game_session.cpp
   trunk/pingus/src/globals.cpp
   trunk/pingus/src/globals.hpp
Log:
move a magic value to globals


Modified: trunk/pingus/src/game_session.cpp
===================================================================
--- trunk/pingus/src/game_session.cpp   2008-07-05 02:44:49 UTC (rev 3681)
+++ trunk/pingus/src/game_session.cpp   2008-07-05 02:54:10 UTC (rev 3682)
@@ -144,7 +144,7 @@
             {
               if (fast_forward)
                 {
-                  for (int i = 0; i < 4; ++i)
+                  for (int i = 0; i < fast_forward_time_scale; ++i)
                     server->update();
                 }
               else

Modified: trunk/pingus/src/globals.cpp
===================================================================
--- trunk/pingus/src/globals.cpp        2008-07-05 02:44:49 UTC (rev 3681)
+++ trunk/pingus/src/globals.cpp        2008-07-05 02:54:10 UTC (rev 3682)
@@ -26,6 +26,7 @@
 bool        enable_demo_recording           = false;
 bool        play_demo                       = false;
 bool        fast_mode                       = false;
+int         fast_forward_time_scale         = 4;
 bool        maintainer_mode                 = false;
 std::string demo_file;
 bool        auto_scrolling                  = true;

Modified: trunk/pingus/src/globals.hpp
===================================================================
--- trunk/pingus/src/globals.hpp        2008-07-05 02:44:49 UTC (rev 3681)
+++ trunk/pingus/src/globals.hpp        2008-07-05 02:54:10 UTC (rev 3682)
@@ -37,6 +37,7 @@
 
 extern bool        debug_actions;                   ///< --debug-actions
 extern bool        fast_mode;                       ///< --fast
+extern int         fast_forward_time_scale;         ///< how much faster the 
game runs in FF mode
 extern bool        maintainer_mode;                 ///< --maintainer-mode
 extern std::string demo_file;                       ///<
 extern bool        auto_scrolling;                  ///< 
--enable-auto-scrolling





reply via email to

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