projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added 'position: last' for global animations to continue from last position
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 4c1f5683c67175dc0641771d72ddee2bdeed337e..e51f1f67d1ea625ac144be3676f9e382b50a06d4 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-2809,7
+2809,8
@@
int get_parameter_value(char *value_raw, char *suffix, int type)
strEqual(value, "middle") ? POS_MIDDLE :
strEqual(value, "lower") ? POS_LOWER :
strEqual(value, "bottom") ? POS_BOTTOM :
strEqual(value, "middle") ? POS_MIDDLE :
strEqual(value, "lower") ? POS_LOWER :
strEqual(value, "bottom") ? POS_BOTTOM :
- strEqual(value, "any") ? POS_ANY : POS_UNDEFINED);
+ strEqual(value, "any") ? POS_ANY :
+ strEqual(value, "last") ? POS_LAST : POS_UNDEFINED);
}
else if (strEqual(suffix, ".align"))
{
}
else if (strEqual(suffix, ".align"))
{
@@
-2859,6
+2860,9
@@
int get_parameter_value(char *value_raw, char *suffix, int type)
{
result = ANIM_EVENT_DEFAULT;
{
result = ANIM_EVENT_DEFAULT;
+ if (string_has_parameter(value, "any"))
+ result |= ANIM_EVENT_CLICK_ANY;
+
if (string_has_parameter(value, "click"))
result |= ANIM_EVENT_CLICK_SELF;
if (string_has_parameter(value, "click"))
result |= ANIM_EVENT_CLICK_SELF;