X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffiles.c;h=1514d4e6d864ddc0dc0761257561b8f1f77baa45;hb=60d09459a7974a32142b51e737b4e94d7491cdc9;hp=77fe2cdb69971e9cc49c81417c76514938b73dba;hpb=dbba72fb511aee11057e6db5d0e9a4d53c9a0ddc;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index 77fe2cdb..1514d4e6 100644 --- a/src/files.c +++ b/src/files.c @@ -11527,8 +11527,9 @@ static boolean string_has_parameter(char *s, char *s_contained) char next_char = s[strlen(s_contained)]; // check if next character is delimiter or whitespace - return (next_char == ',' || next_char == '\0' || - next_char == ' ' || next_char == '\t' ? TRUE : FALSE); + if (next_char == ',' || next_char == '\0' || + next_char == ' ' || next_char == '\t') + return TRUE; } // check if string contains another parameter string after a comma @@ -11741,13 +11742,8 @@ static int get_anim_parameter_values(char *s) // if animation event found, add it to global animation event list if (event_value != ANIM_EVENT_NONE) - { list_pos = AddGlobalAnimEventValue(list_pos, event_value); - // continue with next part of the string, starting with next comma - s = strchr(s + 1, ','); - } - while (s != NULL) { // add optional "click:anim_X" or "click:anim_X.part_X" parameter @@ -11830,6 +11826,7 @@ int get_parameter_value(char *value_raw, char *suffix, int type) strEqual(value, "bottom") ? POS_BOTTOM : strEqual(value, "any") ? POS_ANY : strEqual(value, "ce") ? POS_CE : + strEqual(value, "ce_trigger") ? POS_CE_TRIGGER : strEqual(value, "last") ? POS_LAST : POS_UNDEFINED); } else if (strEqual(suffix, ".align")) @@ -11863,6 +11860,7 @@ int get_parameter_value(char *value_raw, char *suffix, int type) string_has_parameter(value, "centered") ? ANIM_CENTERED : string_has_parameter(value, "all") ? ANIM_ALL : string_has_parameter(value, "tiled") ? ANIM_TILED : + string_has_parameter(value, "level_nr") ? ANIM_LEVEL_NR : ANIM_DEFAULT); if (string_has_parameter(value, "once")) @@ -11919,6 +11917,9 @@ int get_parameter_value(char *value_raw, char *suffix, int type) if (string_has_parameter(value, "multiple_actions")) result |= STYLE_MULTIPLE_ACTIONS; + + if (string_has_parameter(value, "consume_ce_event")) + result |= STYLE_CONSUME_CE_EVENT; } else if (strEqual(suffix, ".fade_mode")) {