From: Holger Schemel Date: Sat, 9 Dec 2023 16:44:11 +0000 (+0100) Subject: changed only handling pointer-style animations clicks in request dialogs X-Git-Tag: 4.3.8.0~4 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=2d49bde26882e981d844866672ddbc54f1cf4875;p=rocksndiamonds.git changed only handling pointer-style animations clicks in request dialogs As request dialogs are displayed above all other screen elements, including global animations (except pointer-style global animations), global animations should not be clickable while request dialogs are active, with the exception of clickable pointer-style animations, which is generally used to display a different pointer while the mouse button is pressed. --- diff --git a/src/anim.c b/src/anim.c index 3c58fa91..7ef6d690 100644 --- a/src/anim.c +++ b/src/anim.c @@ -2139,6 +2139,11 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) { struct GlobalAnimPartControlInfo *part = &anim->part[part_nr]; + // if request dialog is active, only handle pointer-style animations + if (game.request_active && + part->control_info.class != get_hash_from_key("pointer")) + continue; + if (clicked_event == ANIM_CLICKED_RESET) { part->clicked = FALSE;