added disabling networking when executing command line functionality
[rocksndiamonds.git] / src / init.c
index 1d3085c5c4b9bb47c0fe5f191ea3664b29fd8f7c..965706fed1c51d46e25e5f60856ef691c318bfe3 100644 (file)
@@ -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()