2005-12-10
* added image config suffix ".clone_from" to copy whole image settings
+ * fixed bug with invalid ("undefined") CE settings in old level files
2005-12-05
* fixed graphical bug with smashing elements falling faster than player
int element = EL_CUSTOM_START + i;
struct ElementInfo *ei = &element_info[element];
- if (ei->access_direction == MV_NO_MOVING)
+ if (ei->access_direction == MV_NO_DIRECTIONS)
ei->access_direction = MV_ALL_DIRECTIONS;
+#if 0
+ for (j = 0; j < ei->num_change_pages; j++)
+ {
+ struct ElementChangeInfo *change = &ei->change_page[j];
+
+ if (change->trigger_side == CH_SIDE_NONE)
+ change->trigger_side = CH_SIDE_ANY;
+ }
+#endif
+ }
+ }
+
+ /* correct custom element values (fix invalid values for all versions) */
+ if (1)
+ {
+ for (i = 0; i < NUM_CUSTOM_ELEMENTS; i++)
+ {
+ int element = EL_CUSTOM_START + i;
+ struct ElementInfo *ei = &element_info[element];
+
for (j = 0; j < ei->num_change_pages; j++)
{
struct ElementChangeInfo *change = &ei->change_page[j];
+ if (change->trigger_player == CH_PLAYER_NONE)
+ change->trigger_player = CH_PLAYER_ANY;
+
if (change->trigger_side == CH_SIDE_NONE)
change->trigger_side = CH_SIDE_ANY;
}