From: Holger Schemel Date: Thu, 14 Mar 2019 00:55:36 +0000 (+0100) Subject: added support for more event types that can trigger global animations X-Git-Tag: 4.1.3.0~38 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5cad8474aa1d4dc406602ce0aaf8945a60e400e5;p=rocksndiamonds.git added support for more event types that can trigger global animations --- diff --git a/src/anim.c b/src/anim.c index cb415db9..933af1de 100644 --- a/src/anim.c +++ b/src/anim.c @@ -113,6 +113,7 @@ struct GlobalAnimPartControlInfo boolean init_event_state; boolean anim_event_state; + boolean triggered; boolean clickable; boolean clicked; @@ -1095,7 +1096,7 @@ static void InitGlobalAnim_Triggered(struct GlobalAnimPartControlInfo *part, if (isClickablePart(part2, mask)) { - part2->clicked = TRUE; + part2->triggered = TRUE; *anything_clicked = clickConsumed(part); // click was on "part"! #if 0 @@ -1600,6 +1601,10 @@ static void InitGlobalAnim_Clickable(void) { struct GlobalAnimPartControlInfo *part = &anim->part[part_nr]; + if (part->triggered) + part->clicked = TRUE; + + part->triggered = FALSE; part->clickable = FALSE; } }