rnd-20100202-1-src
[rocksndiamonds.git] / src / game.c
index e2b67c24da8a67be955cc3b5b9414702c158d1a1..1a04be1c3b6be86a8cb2786d60b7eee30968fd81 100644 (file)
@@ -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);