projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2c41b6
)
Time is not stopped during menu display in gameloop (fix).
author
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 20 Apr 2004 18:40:40 +0000
(18:40 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 20 Apr 2004 18:40:40 +0000
(18:40 +0000)
Probably there is a prettier way to fix this ;)
SVN-Revision: 599
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
02b717b
..
40a609b
100644
(file)
--- 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: */