Weiterkommen wieder möglich.
authorWintermute <wintermute@hannover.ccc.de>
Sat, 19 Oct 2013 13:27:21 +0000 (15:27 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Sat, 19 Oct 2013 13:27:21 +0000 (15:27 +0200)
badge/jumpnrun/jumpnrun.c

index 28d5976..d3fa992 100644 (file)
@@ -338,14 +338,13 @@ uint8_t jumpnrun_play(char const *lvname) {
   jumpnrun_game_state gs;
   memset(&gs, 0, sizeof(gs));
 
-  for(gs.lives = 3; gs.lives != 0; --gs.lives) {
+  for(gs.lives = 3; gs.status != JUMPNRUN_WON && gs.lives != 0; --gs.lives) {
     gs.status = JUMPNRUN_PLAYING;
     gs.left = 0;
     memset(&gs.player, 0, sizeof(gs.player));
     gs.player.current_box = rectangle_new(lv.start_pos,
                                           hacker_extents());
 
-
     for(size_t i = 0; i < lv.header.enemy_count; ++i) {
       lv.enemies[i].flags = 0;
     }
This page took 0.025396 seconds and 4 git commands to generate.