Just fixed two small bugs in the gameplay during pause:
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 23 Apr 2004 16:37:38 +0000 (16:37 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 23 Apr 2004 16:37:38 +0000 (16:37 +0000)
- don't show the menu, neither quit to level editor;
- when any event happen, the timer would continue (fixed).

SVN-Revision: 670

src/gameloop.cpp

index dd6da60..4eafb85 100644 (file)
@@ -173,6 +173,9 @@ GameSession::start_timers()
 void
 GameSession::on_escape_press()
 {
+  if(game_pause)
+    return;
+
   if(st_gl_mode == ST_GL_TEST)
     {
       exit_status = LEVEL_ABORT;
@@ -216,7 +219,8 @@ GameSession::process_events()
             {
               Player& tux = *world->get_tux();
   
-              st_pause_ticks_stop();
+              if(!game_pause)
+                st_pause_ticks_stop();
 
               switch(event.type)
                 {