don't loose a life when using the "kill" cheat
authorMarek Moeckel <wansti@gmx.de>
Fri, 17 Sep 2004 11:40:10 +0000 (11:40 +0000)
committerMarek Moeckel <wansti@gmx.de>
Fri, 17 Sep 2004 11:40:10 +0000 (11:40 +0000)
SVN-Revision: 1936

src/gameloop.cpp

index aa5e1c7..5eb4429 100644 (file)
@@ -436,7 +436,8 @@ GameSession::process_events()
                           last_keys.clear();
                           }
                         if(compare_last(last_keys, "kill"))
-                          {    // kill Tux
+                          {    // kill Tux, but without losing a life
+                          player_status.lives++;
                           tux.kill(tux.KILL);
                           last_keys.clear();
                           }