Переглянути джерело

Bugfix: Properly account for lives (from antirez)

SimplyMinimal 3 роки тому
батько
коміт
d7c8a220d7
1 змінених файлів з 1 додано та 1 видалено
  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);
 }