From: Holger Schemel Date: Fri, 17 Aug 2018 12:30:27 +0000 (+0200) Subject: added disabling networking when executing command line functionality X-Git-Tag: 4.1.1.0~74 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5449f78b713cb033281266bbb9f46a1de4b8f89e;p=rocksndiamonds.git added disabling networking when executing command line functionality Auto-testing solution tapes could cause crashes if network was enabled. --- diff --git a/src/init.c b/src/init.c index 1d3085c5..965706fe 100644 --- a/src/init.c +++ b/src/init.c @@ -5051,6 +5051,9 @@ void Execute_Command(char *command) { Error(ERR_EXIT_HELP, "unrecognized command '%s'", command); } + + /* disable networking if any valid command was recognized */ + options.network = setup.network_mode = FALSE; } static void InitSetup()