From: Holger Schemel Date: Tue, 12 Dec 2023 13:12:40 +0000 (+0100) Subject: removed explicitly setting draw order for pointer-style animations X-Git-Tag: 4.3.8.1~7 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d1a0dcb34b3d1c33e8cc283fe4dee238c94b84f8;p=rocksndiamonds.git removed explicitly setting draw order for pointer-style animations As pointer-style animations are handled specially anyway (always drawn on top of all other global animations), setting the draw order is not required anymore. --- 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)