projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't loose a life when using the "kill" cheat
[supertux.git]
/
src
/
gameloop.cpp
diff --git
a/src/gameloop.cpp
b/src/gameloop.cpp
index
aa5e1c7
..
5eb4429
100644
(file)
--- 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();
}