Schießen nur möglich, wenn Spieler noch lebt.
authorWintermute <wintermute@hannover.ccc.de>
Sun, 27 Oct 2013 18:31:25 +0000 (19:31 +0100)
committerWintermute <wintermute@hannover.ccc.de>
Sun, 27 Oct 2013 18:31:25 +0000 (19:31 +0100)
badge/jumpnrun/jumpnrun.c

index c91aac1..4e36954 100644 (file)
@@ -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);
           }
         }
This page took 0.025319 seconds and 4 git commands to generate.