projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ed0458
)
When typying 'lifeup' pause is triggered (cause of the last 'p'). Made a work around...
author
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 14 Sep 2004 10:40:28 +0000
(10:40 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 14 Sep 2004 10:40:28 +0000
(10:40 +0000)
SVN-Revision: 1908
src/gameloop.cpp
patch
|
blob
|
history
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
298b8dd
..
93abe39
100644
(file)
--- a/
src/gameloop.cpp
+++ b/
src/gameloop.cpp
@@
-407,6
+407,18
@@
GameSession::process_events()
{
player_status.lives++;
last_keys.clear();
+ // "lifeup" activates pause cause of the 'p'
+ // so work around to ignore it
+ if(game_pause)
+ {
+ game_pause = false;
+ Ticks::pause_stop();
+ }
+ else
+ {
+ game_pause = true;
+ Ticks::pause_start();
+ }
}
if(compare_last(last_keys, "lifedown"))
{