projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8947f87
)
Took st_pause_ticks_stop() out of the events loop.
author
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 24 Apr 2004 08:38:01 +0000
(08:38 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 24 Apr 2004 08:38:01 +0000
(08:38 +0000)
SVN-Revision: 673
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
4eafb85
..
5d0d51e
100644
(file)
--- a/
src/gameloop.cpp
+++ b/
src/gameloop.cpp
@@
-206,6
+206,9
@@
GameSession::process_events()
}
else
{
+ if(!Menu::current() && !game_pause)
+ st_pause_ticks_stop();
+
SDL_Event event;
while (SDL_PollEvent(&event))
{
@@
-219,9
+222,6
@@
GameSession::process_events()
{
Player& tux = *world->get_tux();
- if(!game_pause)
- st_pause_ticks_stop();
-
switch(event.type)
{
case SDL_QUIT: /* Quit event - quit: */