X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fgameloop.cpp;h=40a609b5a1edb3315997864425e4f58ac4acd3e7;hb=58bb408c9d9d2cf5b6771d8a1563b2a27c574e06;hp=02b717b28774c8be146bc8aa9b1b81d7a9c08487;hpb=c2c41b6ad9e808dafc99d597611a85ae07af53a8;p=supertux.git 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: */