minor code formatting change
[rocksndiamonds.git] / src / game.c
index 70b9b811d2db47fc18b9944db43215e9b61ff74a..467b9e440a490756c7f28e95bb6f3e549ebec6b5 100644 (file)
@@ -4556,8 +4556,8 @@ void GameWon(void)
 
          Feld[ExitX][ExitY] =
            (element == EL_EXIT_OPEN            ? EL_EXIT_CLOSING :
-            element == EL_EM_EXIT_OPEN ? EL_EM_EXIT_CLOSING :
-            element == EL_SP_EXIT_OPEN ? EL_SP_EXIT_CLOSING:
+            element == EL_EM_EXIT_OPEN         ? EL_EM_EXIT_CLOSING :
+            element == EL_SP_EXIT_OPEN         ? EL_SP_EXIT_CLOSING:
             element == EL_STEEL_EXIT_OPEN      ? EL_STEEL_EXIT_CLOSING:
             EL_EM_STEEL_EXIT_CLOSING);
 
@@ -13433,6 +13433,10 @@ void ExitPlayer(struct PlayerInfo *player)
 
   if (local_player->players_still_needed > 0)
     local_player->players_still_needed--;
+
+  /* also set if some players not yet gone, but not needed to solve level */
+  if (local_player->players_still_needed == 0)
+    AllPlayersGone = TRUE;
 }
 
 static void setFieldForSnapping(int x, int y, int element, int direction)