From 3b3245e2d4a52b7b653de1b294fb1d26e9e9468f Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 14 Nov 2023 23:32:23 +0100 Subject: [PATCH] fixed bug with events defined to start and stop global animations This fixes a bug where global animations could be started by an event defined using ".anim_event" instead of ".init_event", as long as there is some other ".init_event" definition (even if it never happens). --- src/anim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/anim.c b/src/anim.c index 1f22861e..4f1034eb 100644 --- a/src/anim.c +++ b/src/anim.c @@ -1271,8 +1271,7 @@ static boolean isClickablePart(struct GlobalAnimPartControlInfo *part, int mask) return TRUE; } } - - if (part->anim_event_state) + else if (part->anim_event_state) { int num_anim_events = GetGlobalAnimEventValueCount(c->anim_event); -- 2.34.1