From: Ricardo Cruz Date: Fri, 23 Apr 2004 16:37:38 +0000 (+0000) Subject: Just fixed two small bugs in the gameplay during pause: X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1f3b50e0d8ee64d1d536961fb3540cc8d64df305;p=supertux.git 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 --- 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) {