added updating game panel values immediately after solving game
authorHolger Schemel <info@artsoft.org>
Mon, 14 Jun 2021 16:04:03 +0000 (18:04 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 14 Jun 2021 16:04:03 +0000 (18:04 +0200)
src/game.c

index 1533d9555a231de40cd1a42c9368584604c8b233..3d0e2d3bff7aca38e3d10df5f29e8111d5c5f194 100644 (file)
@@ -4790,6 +4790,9 @@ void GameWon(void)
     score = score_final = game.score_final;
     health = health_final = game.health_final;
 
+    // update game panel values before (delayed) counting of score (if any)
+    LevelSolved_DisplayFinalGameValues(time, score, health);
+
     // if level has time score defined, calculate new final game values
     if (time_score > 0)
     {