fixed bug with using wrong values for 'level solved' and 'game over'
authorHolger Schemel <info@artsoft.org>
Sat, 25 Feb 2017 18:57:56 +0000 (19:57 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:09 +0000 (23:21 +0100)
src/game.c

index 95d5555ac234d479f76f6e5f74ea0f8ab3fe1dda..5391ce9197c8728f4f831641fb88e930f44e12ba 100644 (file)
@@ -10855,17 +10855,17 @@ static void CheckLevelTime()
   }
   else if (level.game_engine_type == GAME_ENGINE_TYPE_MM)
   {
-    if (game_mm.LevelSolved &&
-       !game_mm.GameOver)                              /* game won */
+    if (game_mm.level_solved &&
+       !game_mm.game_over)                             /* game won */
     {
       PlayerWins(local_player);
 
-      game_mm.GameOver = TRUE;
+      game_mm.game_over = TRUE;
 
       AllPlayersGone = TRUE;
     }
 
-    if (game_mm.GameOver)                              /* game lost */
+    if (game_mm.game_over)                             /* game lost */
       AllPlayersGone = TRUE;
   }
 
@@ -11068,17 +11068,17 @@ void GameActionsExt()
   }
   else if (level.game_engine_type == GAME_ENGINE_TYPE_MM)
   {
-    if (game_mm.LevelSolved &&
-       !game_mm.GameOver)                              /* game won */
+    if (game_mm.level_solved &&
+       !game_mm.game_over)                             /* game won */
     {
       PlayerWins(local_player);
 
-      game_mm.GameOver = TRUE;
+      game_mm.game_over = TRUE;
 
       AllPlayersGone = TRUE;
     }
 
-    if (game_mm.GameOver)                              /* game lost */
+    if (game_mm.game_over)                             /* game lost */
       AllPlayersGone = TRUE;
   }