Time is not stopped during menu display in gameloop (fix).
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 20 Apr 2004 18:40:40 +0000 (18:40 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 20 Apr 2004 18:40:40 +0000 (18:40 +0000)
Probably there is a prettier way to fix this ;)

SVN-Revision: 599

src/gameloop.cpp

index 02b717b..40a609b 100644 (file)
@@ -170,7 +170,6 @@ GameSession::on_escape_press()
   else if (!Menu::current())
     {
       Menu::set_current(game_menu);
-      st_pause_ticks_stop();
     }
 }
 
@@ -186,9 +185,12 @@ GameSession::process_events()
       if (Menu::current())
         {
           Menu::current()->event(event);
+          st_pause_ticks_start();
         }
       else
         {
+          st_pause_ticks_stop();
+
           switch(event.type)
             {
             case SDL_QUIT:        /* Quit event - quit: */