Procházet zdrojové kódy

Bugfix: Properly account for lives (from antirez)

SimplyMinimal před 3 roky
rodič
revize
d7c8a220d7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app.c

+ 1 - 1
app.c

@@ -450,7 +450,7 @@ void restart_game_after_gameover(AsteroidsApp* app) {
     app->ticks = 0;
     app->score = 0;
     app->ship_hit = 0;
-    app->lives = GAME_START_LIVES;
+    app->lives = GAME_START_LIVES - 1;
     restart_game(app);
 }