* fixed bug in gadget code which caused reset of CEs in level editor
(example: pressing 'b' [grab brush] on CE config page erased values)
(solution: check if gadgets in ClickOnGadget() are really mapped)
+ * improved level change detection in editor (settings now also checked)
+ * fixed bug with "can move into acid" and "don't collide with" state
2004-07-29
* fixed maze runner style CEs to use the configured move delay value
#include "main.h"
#if 1
-#define setMoveIntoAcidProperty(l, e, v) \
+#define setMoveIntoAcidProperty(l, e, v) \
(setBitfieldProperty(&(l)->can_move_into_acid_bits, \
EP_CAN_MOVE_INTO_ACID, e, v))
-#define getMoveIntoAcidProperty(l, e) \
+#define getMoveIntoAcidProperty(l, e) \
(getBitfieldProperty(&(l)->can_move_into_acid_bits, \
EP_CAN_MOVE_INTO_ACID, e))
-#define setDontCollideWithProperty(l, e, v) \
- (setBitfieldProperty(&(l)->can_move_into_acid_bits, \
+#define setDontCollideWithProperty(l, e, v) \
+ (setBitfieldProperty(&(l)->dont_collide_with_bits, \
EP_DONT_COLLIDE_WITH, e, v))
-#define getDontCollideWithProperty(l, e) \
- (getBitfieldProperty(&(l)->can_move_into_acid_bits, \
+#define getDontCollideWithProperty(l, e) \
+ (getBitfieldProperty(&(l)->dont_collide_with_bits, \
EP_DONT_COLLIDE_WITH, e))
void setBitfieldProperty(int *, int, int, boolean);