X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=6432523e41ce5c5755a6e385c28abd30995b5aee;hp=fb265fab44a1c633590580a7c81949be7682577b;hb=1c9456dab9709209a2462afe72c65373a1294de5;hpb=b3be19debfe6a782dced04fe3ee4406b7d8a2135 diff --git a/src/libgame/misc.c b/src/libgame/misc.c index fb265fab..6432523e 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -2819,6 +2819,14 @@ int get_anim_action_parameter_value(char *token) checked_free(gfx_token); } + if (result == -1) + { + Key key = getKeyFromX11KeyName(token); + + if (key != KSYM_UNDEFINED) + result = -(int)key; + } + if (result == -1) result = ANIM_EVENT_ACTION_NONE; @@ -2909,7 +2917,7 @@ int get_parameter_value(char *value_raw, char *suffix, int type) else if (strEqual(suffix, ".init_event_action") || strEqual(suffix, ".anim_event_action")) { - result = get_anim_action_parameter_value(value); + result = get_anim_action_parameter_value(value_raw); } else if (strEqual(suffix, ".class")) {