Pārlūkot izejas kodu

Bugfix: Properly account for lives (from antirez)

SimplyMinimal 3 gadi atpakaļ
vecāks
revīzija
d7c8a220d7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);
 }