From: Holger Schemel Date: Mon, 14 Jun 2021 15:57:45 +0000 (+0200) Subject: added some comments X-Git-Tag: 4.3.0.0~130 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3c0d675c61f850035b0c13853d93180c6b16dae7;p=rocksndiamonds.git added some comments --- 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;