From 51f8884881dd63d0a986f89b28980719e68012b7 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 29 Sep 2018 00:03:32 +0800 Subject: [PATCH] Fix missing no graphics option for lan server --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index a02b7e3fc..7c266fe23 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1936,8 +1936,11 @@ int main(int argc, char *argv[] ) } else if (CommandLine::has("--lan-server", &s)) { - ProfileWorld::disableGraphics(); - UserConfigParams::m_enable_sound = false; + if (no_graphics) + { + ProfileWorld::disableGraphics(); + UserConfigParams::m_enable_sound = false; + } NetworkConfig::get()->setIsServer(true); ServerConfig::m_server_name = s; ServerConfig::m_wan_server = false;