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 2e504df..e1522b5 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;