소스 검색

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