From e5bb8b3337a96aea82e7b3b3eeab7a98e20e3a3e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 2 Sep 2014 22:41:09 +0200 Subject: [PATCH] fixed bug with option '-v' displaying version instead of enabling verbose mode --- src/conftime.h | 2 +- src/libgame/misc.c | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/conftime.h b/src/conftime.h index 0e3b4273..b9b2330a 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2014-08-28 16:55" +#define COMPILE_DATE_STRING "2014-09-02 22:37" diff --git a/src/libgame/misc.c b/src/libgame/misc.c index dbcd7fdb..87b707cb 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -873,13 +873,6 @@ void GetOptions(char *argv[], exit(0); } - else if (strncmp(option, "-version", option_len) == 0 || - strncmp(option, "-V", option_len) == 0) - { - print_version_function(); - - exit(0); - } else if (strncmp(option, "-display", option_len) == 0) { if (option_arg == NULL) @@ -951,10 +944,6 @@ void GetOptions(char *argv[], { options.serveronly = TRUE; } - else if (strncmp(option, "-verbose", option_len) == 0) - { - options.verbose = TRUE; - } else if (strncmp(option, "-debug", option_len) == 0) { options.debug = TRUE; @@ -963,6 +952,17 @@ void GetOptions(char *argv[], { options.debug_x11_sync = TRUE; } + else if (strncmp(option, "-verbose", option_len) == 0) + { + options.verbose = TRUE; + } + else if (strncmp(option, "-version", option_len) == 0 || + strncmp(option, "-V", option_len) == 0) + { + print_version_function(); + + exit(0); + } else if (strPrefix(option, "-D")) { #if 1 -- 2.34.1