rnd-20030821-3-src
[rocksndiamonds.git] / src / game.c
index 1c86acb0cc779f7196f82e660fc7361e9b164a2c..74c934d291b4284f04e963b5b53d3f911edb69a8 100644 (file)
@@ -5310,14 +5310,14 @@ static void ChangeActiveTrap(int x, int y)
 
 static void ChangeElementNowExt(int x, int y, int target_element)
 {
-#if 1
-  /* check if the new element is unaccessible for the player */
-  if (IS_PLAYER(x, y) && !IS_ACCESSIBLE(target_element))
+  /* check if element under player changes from accessible to unaccessible
+     (needed for special case of dropping element which then changes) */
+  if (IS_PLAYER(x, y) &&
+      IS_ACCESSIBLE(Feld[x][y]) && !IS_ACCESSIBLE(target_element))
   {
     Bang(x, y);
     return;
   }
-#endif
 
   RemoveField(x, y);
   Feld[x][y] = target_element;