[Super-tux-commit] supertux/src gameloop.cpp,1.87,1.88
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-04-20 18:40:49
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25989/src Modified Files: gameloop.cpp Log Message: Time is not stopped during menu display in gameloop (fix). Probably there is a prettier way to fix this ;) Index: gameloop.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- gameloop.cpp 20 Apr 2004 16:25:56 -0000 1.87 +++ gameloop.cpp 20 Apr 2004 18:40:40 -0000 1.88 @@ -170,7 +170,6 @@ else if (!Menu::current()) { Menu::set_current(game_menu); - st_pause_ticks_stop(); } } @@ -186,9 +185,12 @@ 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: */ |