X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fserver%2Fmain.c;h=c8ca499293999f32067b2c5a0afcc54dc34c8526;hb=c31d3a8d3f993a2cfcc8c5e438283e3a693d5b27;hp=33e539102beded5802016eadea339ea40f2cc77e;hpb=1452d43c6d7c89219cda91362da53ac8e4acb887;p=plomrogue
diff --git a/src/server/main.c b/src/server/main.c
index 33e5391..c8ca499 100644
--- a/src/server/main.c
+++ b/src/server/main.c
@@ -4,7 +4,6 @@
#include /* exit() */
#include "../common/rexit.h" /* exit_err, set_cleanup_func() */
#include "cleanup.h" /* set_cleanup_flag(), cleanup() */
-#include "configfile.h" /* read_config_file() */
#include "hardcoded_strings.h" /* s */
#include "init.h" /* run_game(), obey_argv(), obey_argv(), setup_server_io() */
#include "world.h" /* struct World */
@@ -31,16 +30,14 @@ int main(int argc, char ** argv)
if (world.replay)
{
test = printf("Replay mode. Auto-replaying up to turn %d.\n",
- world.replay);
+ world.replay);
exit_err(-1 == test, printf_err);
}
}
+ world.map.length = 64; /* Just a sane default value. */
- /* Init config file and server i/o files. */
- read_config_file();
+ /* Init server i/o, Enter play or replay mode loops, then leave properly. */
setup_server_io();
-
- /* Enter play or replay mode loops, then leave properly. */
run_game();
cleanup();
exit(EXIT_SUCCESS);