From: Ricardo Cruz Date: Sat, 24 Apr 2004 08:38:01 +0000 (+0000) Subject: Took st_pause_ticks_stop() out of the events loop. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3c7f24a0315dd0f700c3159b348c481d89ce015b;p=supertux.git Took st_pause_ticks_stop() out of the events loop. SVN-Revision: 673 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 4eafb85f1..5d0d51e32 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -206,6 +206,9 @@ GameSession::process_events() } else { + if(!Menu::current() && !game_pause) + st_pause_ticks_stop(); + SDL_Event event; while (SDL_PollEvent(&event)) { @@ -219,9 +222,6 @@ GameSession::process_events() { Player& tux = *world->get_tux(); - if(!game_pause) - st_pause_ticks_stop(); - switch(event.type) { case SDL_QUIT: /* Quit event - quit: */