mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 18:25:21 +01:00
Server: move shutdown parts to a specific shutdown state object (#7437)
* Server: move shutdown parts to a specific shutdown state object
This commit is contained in:
@@ -1065,7 +1065,7 @@ void Game::run()
|
||||
|
||||
while (RenderingEngine::run()
|
||||
&& !(*kill || g_gamecallback->shutdown_requested
|
||||
|| (server && server->getShutdownRequested()))) {
|
||||
|| (server && server->isShutdownRequested()))) {
|
||||
|
||||
const irr::core::dimension2d<u32> ¤t_screen_size =
|
||||
RenderingEngine::get_video_driver()->getScreenSize();
|
||||
@@ -1271,6 +1271,7 @@ bool Game::createSingleplayerServer(const std::string &map_dir,
|
||||
}
|
||||
|
||||
server = new Server(map_dir, gamespec, simple_singleplayer_mode, bind_addr, false);
|
||||
server->init();
|
||||
server->start();
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user