X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fmisc.c;h=297d5dce7870e747d9c05666f4528d7631c2ceb6;hb=cacc5129ff29981490cb53d43aeca8264b7f176c;hp=c34cddd322cf7a1294ee33c074e73f736327e2c9;hpb=30f5fd7b8f2235820dcbe638a18319d802317530;p=rocksndiamonds.git diff --git a/src/libgame/misc.c b/src/libgame/misc.c index c34cddd3..297d5dce 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -939,7 +939,6 @@ void GetOptions(int argc, char *argv[], rw_base_path = getProgramMainDataPath(); /* initialize global program options */ - options.display_name = NULL; options.server_host = NULL; options.server_port = 0; @@ -1010,15 +1009,6 @@ void GetOptions(int argc, char *argv[], exit(0); } - else if (strncmp(option, "-display", option_len) == 0) - { - if (option_arg == NULL) - Error(ERR_EXIT_HELP, "option '%s' requires an argument", option_str); - - options.display_name = option_arg; - if (option_arg == next_option) - options_left++; - } else if (strncmp(option, "-basepath", option_len) == 0) { if (option_arg == NULL) @@ -2705,6 +2695,9 @@ int get_parameter_value(char *value_raw, char *suffix, int type) string_has_parameter(value, "all") ? ANIM_ALL : ANIM_DEFAULT); + if (string_has_parameter(value, "once")) + result |= ANIM_ONCE; + if (string_has_parameter(value, "reverse")) result |= ANIM_REVERSE;