Took st_pause_ticks_stop() out of the events loop.
authorRicardo Cruz <rick2@aeiou.pt>
Sat, 24 Apr 2004 08:38:01 +0000 (08:38 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Sat, 24 Apr 2004 08:38:01 +0000 (08:38 +0000)
SVN-Revision: 673

src/gameloop.cpp

index 4eafb85..5d0d51e 100644 (file)
@@ -206,6 +206,9 @@ GameSession::process_events()
     }
   else
     {
+      if(!Menu::current() && !game_pause)
+        st_pause_ticks_stop();
+
       SDL_Event event;
       while (SDL_PollEvent(&event))
         {
@@ -219,9 +222,6 @@ GameSession::process_events()
             {
               Player& tux = *world->get_tux();
   
-              if(!game_pause)
-                st_pause_ticks_stop();
-
               switch(event.type)
                 {
                 case SDL_QUIT:        /* Quit event - quit: */