瀏覽代碼

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);
 }