From 1f3b50e0d8ee64d1d536961fb3540cc8d64df305 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Fri, 23 Apr 2004 16:37:38 +0000 Subject: [PATCH] Just fixed two small bugs in the gameplay during pause: - 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gameloop.cpp b/src/gameloop.cpp index dd6da60ca..4eafb85f1 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -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) { -- 2.11.0