When typying 'lifeup' pause is triggered (cause of the last 'p'). Made a work around...
authorRicardo Cruz <rick2@aeiou.pt>
Tue, 14 Sep 2004 10:40:28 +0000 (10:40 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Tue, 14 Sep 2004 10:40:28 +0000 (10:40 +0000)
SVN-Revision: 1908

src/gameloop.cpp

index 298b8dd..93abe39 100644 (file)
@@ -407,6 +407,18 @@ GameSession::process_events()
                           {
                           player_status.lives++;
                           last_keys.clear();
+                          // "lifeup" activates pause cause of the 'p'
+                          // so work around to ignore it
+                            if(game_pause)
+                              {
+                                game_pause = false;
+                                Ticks::pause_stop();
+                              }
+                            else
+                              {
+                                game_pause = true;
+                                Ticks::pause_start();
+                              }
                           }
                         if(compare_last(last_keys, "lifedown"))
                           {