From 3c0d675c61f850035b0c13853d93180c6b16dae7 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 14 Jun 2021 17:57:45 +0200 Subject: [PATCH] added some comments --- src/game.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.c b/src/game.c index 0093ee45..4e1c699d 100644 --- a/src/game.c +++ b/src/game.c @@ -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; -- 2.34.1