+2007-10-31
+ * fixed bug in new "can dig" feature (see below) so that an unsuccessful
+ try to push something (due to push delay) does not cause a dig action
+
2007-10-29
* fixed bug with reference elements used as trigger elements on custom
element change pages not being recognized
CUSTOM_ELEMENT_CAN_ENTER_FIELD(element, nextx, nexty)))))
return MP_NO_ACTION;
- if (IS_CUSTOM_ELEMENT(element) &&
- CUSTOM_ELEMENT_CAN_ENTER_FIELD(element, nextx, nexty))
- {
- if (!DigFieldByCE(nextx, nexty, element))
- return MP_NO_ACTION;
- }
-
if (!checkDiagonalPushing(player, x, y, real_dx, real_dy))
return MP_NO_ACTION;
return MP_NO_ACTION;
}
+ if (IS_CUSTOM_ELEMENT(element) &&
+ CUSTOM_ELEMENT_CAN_ENTER_FIELD(element, nextx, nexty))
+ {
+ if (!DigFieldByCE(nextx, nexty, element))
+ return MP_NO_ACTION;
+ }
+
if (IS_SB_ELEMENT(element))
{
if (element == EL_SOKOBAN_FIELD_FULL)