X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fanim.c;fp=src%2Fanim.c;h=1389dc4e8815451aaa2a49d6d78190f841871e22;hb=d3169996a584ab249a078dd71a62111f60c7683c;hp=b651ac6fc5cbe1e31556d82b2585415a6149a180;hpb=ffbf029c35d1abc2975fe61dc2cd7230d7e2f04b;p=rocksndiamonds.git diff --git a/src/anim.c b/src/anim.c index b651ac6f..1389dc4e 100644 --- a/src/anim.c +++ b/src/anim.c @@ -598,10 +598,15 @@ static void InitGlobalAnimControls(void) anim->has_base = TRUE; } - // force pointer-style animations to pass-through clicks - if (part->control_info.class == get_hash_from_key("pointer") && - part->control_info.style == STYLE_DEFAULT) + // apply special settings to pointer-style animations + if (part->control_info.class == get_hash_from_key("pointer")) + { + // force pointer-style animations to be checked for clicks first + part->control_info.draw_order = 1000000; + + // force pointer-style animations to pass-through clicks part->control_info.style |= STYLE_PASSTHROUGH; + } } if (anim->num_parts > 0 || anim->has_base)