AmoebaCnt2[group_nr]++;
}
-static void PlayerWins(void)
+static void LevelSolved(void)
{
if (level.game_engine_type == GAME_ENGINE_TYPE_RND &&
local_player->players_still_needed > 0)
local_player->friends_still_needed--;
if (!local_player->friends_still_needed &&
!local_player->GameOver && AllPlayersGone)
- PlayerWins();
+ LevelSolved();
return;
}
ExitPlayer(&stored_player[i]);
if (AllPlayersGone)
- PlayerWins();
+ LevelSolved();
break;
}
if (game_em.level_solved &&
!game_em.game_over) // game won
{
- PlayerWins();
+ LevelSolved();
game_em.game_over = TRUE;
if (game_sp.level_solved &&
!game_sp.game_over) // game won
{
- PlayerWins();
+ LevelSolved();
game_sp.game_over = TRUE;
if (game_mm.level_solved &&
!game_mm.game_over) // game won
{
- PlayerWins();
+ LevelSolved();
game_mm.game_over = TRUE;
if ((local_player->friends_still_needed == 0 ||
IS_SP_ELEMENT(Feld[jx][jy])) &&
AllPlayersGone)
- PlayerWins();
+ LevelSolved();
}
// this breaks one level: "machine", level 000
{
local_player->players_still_needed = 0;
- PlayerWins();
+ LevelSolved();
PlayLevelSound(x, y, SND_GAME_SOKOBAN_SOLVING);
}