From: Ricardo Cruz Date: Tue, 20 Apr 2004 18:40:40 +0000 (+0000) Subject: Time is not stopped during menu display in gameloop (fix). X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=58bb408c9d9d2cf5b6771d8a1563b2a27c574e06;p=supertux.git Time is not stopped during menu display in gameloop (fix). Probably there is a prettier way to fix this ;) SVN-Revision: 599 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 02b717b28..40a609b5a 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -170,7 +170,6 @@ GameSession::on_escape_press() else if (!Menu::current()) { Menu::set_current(game_menu); - st_pause_ticks_stop(); } } @@ -186,9 +185,12 @@ GameSession::process_events() if (Menu::current()) { Menu::current()->event(event); + st_pause_ticks_start(); } else { + st_pause_ticks_stop(); + switch(event.type) { case SDL_QUIT: /* Quit event - quit: */