From: Holger Schemel Date: Sat, 25 Feb 2017 18:57:56 +0000 (+0100) Subject: fixed bug with using wrong values for 'level solved' and 'game over' X-Git-Tag: 4.1.0.0~189 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=eb58d808c808c9fe4f33c7c18ae2309c6ff538da;p=rocksndiamonds.git fixed bug with using wrong values for 'level solved' and 'game over' --- diff --git a/src/game.c b/src/game.c index 95d5555a..5391ce91 100644 --- a/src/game.c +++ b/src/game.c @@ -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; }