home · contact · privacy
Make grids hexagonal, remove all diagonal movement penalty hassle.
[plomrogue] / src / server / main.c
index 3c8829b7067ec010267382f27d80b04d9da47bcf..366fb17b8864abdb58e539098bc683f49bac5df5 100644 (file)
@@ -2,12 +2,10 @@
 
 #include <stdio.h> /* printf() */
 #include <stdlib.h> /* exit() */
-#include "../common/err_try_fgets.h" /* set_err_try_fgets_delim() */
 #include "../common/rexit.h" /* exit_err, set_cleanup_func() */
 #include "cleanup.h" /* set_cleanup_flag(), cleanup() */
-#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io(),
-                   * init_map_and_map_object_configs()
-                   */
+#include "configfile.h" /* read_config_file() */
+#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
 #include "world.h" /* struct World */
 
 
@@ -41,10 +39,9 @@ int main(int argc, char ** argv)
     world.path_in           = "server/in";
     world.path_record       = "record";
     world.tmp_suffix        = "_tmp";
-    set_err_try_fgets_delim("%%\n");
 
-    /* Init map, map object configurations and server i/o files. */
-    init_map_and_map_objects_configs();
+    /* Init config file and server i/o files. */
+    read_config_file();
     setup_server_io();
 
     /* Enter play or replay mode loops, then leave properly. */