diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2018-06-13 21:58:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 21:58:34 +0200 |
commit | 9a1d3584c22013860ec4b664858076ab6ddf3ea1 (patch) | |
tree | 444af0cbb0f77fa2ff47123b3e3b46d83b01e5c2 /src/main.cpp | |
parent | 10634f0443c478ff08daf80388198931befaa95c (diff) | |
download | hax-minetest-server-9a1d3584c22013860ec4b664858076ab6ddf3ea1.tar.gz hax-minetest-server-9a1d3584c22013860ec4b664858076ab6ddf3ea1.zip |
Server: move shutdown parts to a specific shutdown state object (#7437)
* Server: move shutdown parts to a specific shutdown state object
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d9073cfb8..005e1acc7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -870,6 +870,7 @@ static bool run_dedicated_server(const GameParams &game_params, const Settings & // Create server Server server(game_params.world_path, game_params.game_spec, false, bind_addr, true, &iface); + server.init(); g_term_console.setup(&iface, &kill, admin_nick); @@ -904,6 +905,7 @@ static bool run_dedicated_server(const GameParams &game_params, const Settings & // Create server Server server(game_params.world_path, game_params.game_spec, false, bind_addr, true); + server.init(); server.start(); // Run server |