Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26382/src
Modified Files:
gameloop.cpp
Log Message:
When typying 'lifeup' pause is triggered (cause of the last 'p'). Made a work around to fix that.
Index: gameloop.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/gameloop.cpp,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -d -r1.173 -r1.174
--- gameloop.cpp 14 Sep 2004 10:27:04 -0000 1.173
+++ gameloop.cpp 14 Sep 2004 10:40:28 -0000 1.174
@@ -407,6 +407,18 @@
{
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"))
{
|