From 43a652687e420393c072626fcc9abf7eda4be56e Mon Sep 17 00:00:00 2001 From: Wintermute Date: Sun, 27 Oct 2013 19:31:25 +0100 Subject: [PATCH] =?utf8?q?Schie=C3=9Fen=20nur=20m=C3=B6glich,=20wenn=20Spi?= =?utf8?q?eler=20noch=20lebt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- badge/jumpnrun/jumpnrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badge/jumpnrun/jumpnrun.c b/badge/jumpnrun/jumpnrun.c index c91aac1..4e36954 100644 --- a/badge/jumpnrun/jumpnrun.c +++ b/badge/jumpnrun/jumpnrun.c @@ -269,7 +269,7 @@ uint8_t jumpnrun_play_level(char const *lvname) { for(i = 0; i < JUMPNRUN_MAX_SHOTS && jumpnrun_shot_spawned(&gs.shots[i]); ++i) ; - if(i < JUMPNRUN_MAX_SHOTS) { + if(i < JUMPNRUN_MAX_SHOTS && jumpnrun_player_alive(&gs.player)) { jumpnrun_shot_spawn(gs.shots + i, &gs); } } -- 2.20.1