projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
231b565
)
Just fixed two small bugs in the gameplay during pause:
author
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 23 Apr 2004 16:37:38 +0000
(16:37 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Fri, 23 Apr 2004 16:37:38 +0000
(16:37 +0000)
- don't show the menu, neither quit to level editor;
- when any event happen, the timer would continue (fixed).
SVN-Revision: 670
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
dd6da60
..
4eafb85
100644
(file)
--- a/
src/gameloop.cpp
+++ b/
src/gameloop.cpp
@@
-173,6
+173,9
@@
GameSession::start_timers()
void
GameSession::on_escape_press()
{
+ if(game_pause)
+ return;
+
if(st_gl_mode == ST_GL_TEST)
{
exit_status = LEVEL_ABORT;
@@
-216,7
+219,8
@@
GameSession::process_events()
{
Player& tux = *world->get_tux();
- st_pause_ticks_stop();
+ if(!game_pause)
+ st_pause_ticks_stop();
switch(event.type)
{