X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;h=1a04be1c3b6be86a8cb2786d60b7eee30968fd81;hp=e2b67c24da8a67be955cc3b5b9414702c158d1a1;hb=2d769736ea3634a55a88c1d792ffdbefb190d1f3;hpb=e3ef41011a3564492d12988716af8fc1f090ac6b diff --git a/src/game.c b/src/game.c index e2b67c24..1a04be1c 100644 --- a/src/game.c +++ b/src/game.c @@ -15389,8 +15389,13 @@ static int DigField(struct PlayerInfo *player, PlayLevelSoundElementAction(nextx, nexty, EL_SOKOBAN_FIELD_EMPTY, ACTION_FILLING); +#if 1 + if (local_player->sokobanfields_still_needed == 0 && + (game.emulation == EMU_SOKOBAN || level.auto_exit_sokoban)) +#else if (local_player->sokobanfields_still_needed == 0 && game.emulation == EMU_SOKOBAN) +#endif { PlayerWins(player);