From 58bb408c9d9d2cf5b6771d8a1563b2a27c574e06 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 20 Apr 2004 18:40:40 +0000 Subject: [PATCH] Time is not stopped during menu display in gameloop (fix). Probably there is a prettier way to fix this ;) SVN-Revision: 599 --- src/gameloop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: */ -- 2.11.0