X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=03dca6bb761c5c4767a3c5236aeab6beac9f9742;hb=e802a9609c8b94b3aa720d28acab5c4240fc996f;hp=70b9b811d2db47fc18b9944db43215e9b61ff74a;hpb=30eb586d06bc4d1ee7388dced1c20e530292aa93;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 70b9b811..03dca6bb 100644 --- a/src/game.c +++ b/src/game.c @@ -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)