changed setup to be initialized before executing commands
[rocksndiamonds.git] / src / init.c
index 25e8c07a3b6da5556edefdbb661785ffae52bf3a..a760cbf51223c3c3a42d8a01bdafb2933cdfa5bf 100644 (file)
@@ -5673,6 +5673,10 @@ void OpenAll()
 
   print_timestamp_time("[init global stuff]");
 
+  InitSetup();
+
+  print_timestamp_time("[init setup/config stuff (1)]");
+
   if (options.execute_command)
     Execute_Command(options.execute_command);
 
@@ -5687,10 +5691,6 @@ void OpenAll()
     exit(0);                   /* never reached, server loops forever */
   }
 
-  InitSetup();
-
-  print_timestamp_time("[init setup/config stuff (1)]");
-
   InitGameInfo();
   print_timestamp_time("[init setup/config stuff (2)]");
   InitPlayerInfo();