added some comments
authorHolger Schemel <info@artsoft.org>
Mon, 14 Jun 2021 15:57:45 +0000 (17:57 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 14 Jun 2021 15:57:45 +0000 (17:57 +0200)
src/game.c

index 0093ee4566fe45623d0efc09c56cad5224d14757..4e1c699d28a5768cc56a2a6c80586f85a9f85403 100644 (file)
@@ -4777,6 +4777,7 @@ void GameWon(void)
     score = score_final = game.score_final;
     health = health_final = game.health_final;
 
+    // if level has time score defined, calculate new final game values
     if (time_score > 0)
     {
       int time_final_max = 999;
@@ -4810,6 +4811,7 @@ void GameWon(void)
       game.health_final = health_final;
     }
 
+    // if not counting score after game, immediately update game panel values
     if (level_editor_test_game || !setup.count_score_after_game)
     {
       time = time_final;