X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=blobdiff_plain;f=src%2Fanim.c;h=a23d6e581de1c2f23c1b780d91e1f771c92f1247;hb=d1a0dcb34b3d1c33e8cc283fe4dee238c94b84f8;hp=dcd66e330f2862decf9856ccabd6c3ba97860a8b;hpb=263c1f057f081555ae53ad16d9b65ea026180441;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index dcd66e33..a23d6e58 100644 --- a/src/anim.c +++ b/src/anim.c @@ -602,19 +602,10 @@ static void InitGlobalAnimControls(void) anim->has_base = TRUE; } - // apply special settings for pointer-style animations - if (part->control_info.class == get_hash_from_key("pointer")) - { - // force animation to be on top (must set anim and part control) - if (anim->control_info.draw_order == 0) - anim->control_info.draw_order = 1000000; - if (part->control_info.draw_order == 0) - part->control_info.draw_order = 1000000; - - // force animation to pass-through clicks (must set part control) - if (part->control_info.style == STYLE_DEFAULT) - part->control_info.style |= STYLE_PASSTHROUGH; - } + // force pointer-style animations to pass-through clicks + if (part->control_info.class == get_hash_from_key("pointer") && + part->control_info.style == STYLE_DEFAULT) + part->control_info.style |= STYLE_PASSTHROUGH; } if (anim->num_parts > 0 || anim->has_base)