rnd-20040409-1-src
[rocksndiamonds.git] / src / game.c
index a19a1a86ca48b6b20856ea284592fd3b73361fcc..e80a1d1b82c46e514f25d1ca0b3e63844e5918b6 100644 (file)
@@ -10524,12 +10524,18 @@ int DigField(struct PlayerInfo *player,
 
     default:
 
+#if 1
+      if (IS_WALKABLE(element) && ACCESS_FROM(element, opposite_direction))
+#else
       if (IS_WALKABLE(element))
+#endif
       {
        int sound_action = ACTION_WALKING;
 
+#if 0
        if (!ACCESS_FROM(element, opposite_direction))
          return MF_NO_ACTION;  /* field not accessible from this direction */
+#endif
 
 #if 1
        if (element == EL_EMPTY_SPACE &&
@@ -10567,13 +10573,18 @@ int DigField(struct PlayerInfo *player,
 
        break;
       }
+#if 1
+      else if (IS_PASSABLE(element) && canPassField(x, y, move_direction))
+#else
       else if (IS_PASSABLE(element))
+#endif
       {
-#if 1
+#if 0
        if (!canPassField(x, y, move_direction))
          return MF_NO_ACTION;
 #else
 
+#if 0
 #if 1
        if (!IN_LEV_FIELD(nextx, nexty) || IS_PLAYER(nextx, nexty) ||
            !IS_WALKABLE_FROM(Feld[nextx][nexty], move_direction) ||
@@ -10583,6 +10594,7 @@ int DigField(struct PlayerInfo *player,
        if (!IN_LEV_FIELD(nextx, nexty) || !IS_FREE(nextx, nexty))
          return MF_NO_ACTION;
 #endif
+#endif
 
 #if 1
        if (!ACCESS_FROM(element, opposite_direction))