Don't open the menu on the end sequence.
authorRicardo Cruz <rick2@aeiou.pt>
Mon, 17 May 2004 10:11:43 +0000 (10:11 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Mon, 17 May 2004 10:11:43 +0000 (10:11 +0000)
SVN-Revision: 1234

src/gameloop.cpp

index 807b3e2..0b86cb3 100644 (file)
@@ -178,7 +178,7 @@ GameSession::start_timers()
 void
 GameSession::on_escape_press()
 {
-  if(world->get_tux()->dying)
+  if(world->get_tux()->dying || end_sequence != NO_ENDSEQUENCE)
     return;   // don't let the player open the menu, when he is dying
   if(game_pause)
     return;