X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=blobdiff_plain;f=src%2Fanim.c;h=cdc0fd0574363fc39f82a6dd9c19fd5f1060a77d;hb=5d1f7afe4cac805e10a8f4e61c67497c55e22453;hp=e836ff6a3aaf8ff85dabe6b0679111df38133f88;hpb=70df2b1709f05156b8bf6b142cc2a2e23205130b;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index e836ff6a..cdc0fd05 100644 --- a/src/anim.c +++ b/src/anim.c @@ -531,10 +531,6 @@ static void InitGlobalAnimControls(void) anim->state = ANIM_STATE_INACTIVE; - // if draw order is undefined, set to default value "0" - if (anim->control_info.draw_order == ARG_UNDEFINED_VALUE) - anim->control_info.draw_order = 0; - part_nr = 0; for (p = 0; p < NUM_GLOBAL_ANIM_PARTS_ALL; p++) @@ -606,10 +602,6 @@ static void InitGlobalAnimControls(void) if (part->control_info.class == get_hash_from_key("pointer") && part->control_info.style == STYLE_DEFAULT) part->control_info.style |= STYLE_PASSTHROUGH; - - // if draw order is undefined, inherit it from main animation - if (part->control_info.draw_order == ARG_UNDEFINED_VALUE) - part->control_info.draw_order = anim->control_info.draw_order; } if (anim->num_parts > 0 || anim->has_base)