Fix missing no graphics option for lan server

This commit is contained in:
Benau 2018-09-29 00:03:32 +08:00
parent abd3a79526
commit 51f8884881

View File

@ -1935,9 +1935,12 @@ int main(int argc, char *argv[] )
ServerConfig::m_validating_player = true;
}
else if (CommandLine::has("--lan-server", &s))
{
if (no_graphics)
{
ProfileWorld::disableGraphics();
UserConfigParams::m_enable_sound = false;
}
NetworkConfig::get()->setIsServer(true);
ServerConfig::m_server_name = s;
ServerConfig::m_wan_server = false;