projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
537a385
)
fixed bug with events defined to start and stop global animations
author
Holger Schemel
<info@artsoft.org>
Tue, 14 Nov 2023 22:32:23 +0000
(23:32 +0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 15 Nov 2023 10:39:39 +0000
(11:39 +0100)
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
patch
|
blob
|
history
diff --git
a/src/anim.c
b/src/anim.c
index 1f22861eee75de90f9ecf2558bacbf9603e9588f..4f1034eb35d43b4251d97332dafced2b574f0823 100644
(file)
--- 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);