From: Holger Schemel Date: Tue, 14 Nov 2023 22:32:23 +0000 (+0100) Subject: fixed bug with events defined to start and stop global animations X-Git-Tag: 4.3.8.0~42 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3b3245e2d4a52b7b653de1b294fb1d26e9e9468f;p=rocksndiamonds.git 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). --- 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);