added using counter of players that still have to enter an exit
authorHolger Schemel <info@artsoft.org>
Fri, 17 Aug 2018 11:02:53 +0000 (13:02 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 17 Aug 2018 11:02:53 +0000 (13:02 +0200)
src/game.c

index 2e504df5d5188103bc46381436ec12bc71781972..e1522b58bb844136786b4113ee247df34506cfdb 100644 (file)
@@ -4422,6 +4422,10 @@ void InitAmoebaNr(int x, int y)
 
 static void PlayerWins(struct PlayerInfo *player)
 {
+  if (level.game_engine_type == GAME_ENGINE_TYPE_RND &&
+      local_player->players_still_needed > 0)
+    return;
+
   player->LevelSolved = TRUE;
   player->GameOver = TRUE;