From: Holger Schemel Date: Thu, 30 May 2019 18:43:33 +0000 (+0200) Subject: re-added variable to check if any global animation was clicked X-Git-Tag: 4.1.4.0~30 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=22d06801587ab712d58e2843877e993ccdde0b46;p=rocksndiamonds.git re-added variable to check if any global animation was clicked --- diff --git a/src/anim.c b/src/anim.c index 0aa1c0f4..d5b3d74a 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1760,6 +1760,7 @@ static void InitGlobalAnim_Clickable(void) static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) { boolean click_consumed = FALSE; + boolean anything_clicked = FALSE; boolean any_part_clicked = FALSE; boolean any_event_action = FALSE; int mode_nr; @@ -1803,7 +1804,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) part->old_anim_nr + 1, part->old_nr + 1); #endif - part->clicked = TRUE; + anything_clicked = part->clicked = TRUE; click_consumed |= clickConsumed(part); } @@ -1816,7 +1817,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) part->old_anim_nr + 1, part->old_nr + 1); #endif - part->clicked = TRUE; + anything_clicked = part->clicked = TRUE; click_consumed |= clickConsumed(part); } @@ -1846,7 +1847,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) part->old_anim_nr + 1, part->old_nr + 1); #endif - part->clicked = TRUE; + anything_clicked = part->clicked = TRUE; click_consumed |= clickConsumed(part); } @@ -1858,7 +1859,7 @@ static boolean InitGlobalAnim_Clicked(int mx, int my, int clicked_event) } } - if (click_consumed) + if (anything_clicked) { handle_click = TRUE;