X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=e51f1f67d1ea625ac144be3676f9e382b50a06d4;hb=56468eb7fc2e010ec2c2026793af35763195d332;hp=4c1f5683c67175dc0641771d72ddee2bdeed337e;hpb=5bdc30d016416d04eec826a28321325d4ddc66c2;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 4c1f5683..e51f1f67 100644 --- 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, "any") ? POS_ANY : POS_UNDEFINED); + strEqual(value, "any") ? POS_ANY : + strEqual(value, "last") ? POS_LAST : POS_UNDEFINED); } else if (strEqual(suffix, ".align")) { @@ -2859,6 +2860,9 @@ int get_parameter_value(char *value_raw, char *suffix, int type) { 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;