From 2d49bde26882e981d844866672ddbc54f1cf4875 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 9 Dec 2023 17:44:11 +0100 Subject: [PATCH] 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. --- src/anim.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.34.1