From: Marek Moeckel Date: Fri, 17 Sep 2004 11:40:10 +0000 (+0000) Subject: don't loose a life when using the "kill" cheat X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=72208ffd7bc316b640987a1c453d31b8e41bffef;p=supertux.git don't loose a life when using the "kill" cheat SVN-Revision: 1936 --- diff --git a/src/gameloop.cpp b/src/gameloop.cpp index aa5e1c7b9..5eb442969 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -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(); }