Added a "StartNetwork" bool to DefaultConfig.

This commit is contained in:
stiffly
2015-12-09 10:37:40 +01:00
parent f83e217638
commit ce41421dbb
2 changed files with 13 additions and 4 deletions
+9 -1
View File
@@ -1,8 +1,16 @@
[Debug]
LogLevel=1
[Video]
Fullscreen=false
VSYNC=false
Width=1280
Height=720
Height=720
[Networking]
StartNetwork=false
+4 -3
View File
@@ -38,9 +38,10 @@ Game::Game(int argc, char* argv[])
// Create a TEST WORLD
m_World = new HardcodedTestWorld();
// TEMP: Invoke network
boost::thread workerThread(&Game::NetworkFunction, this);
// Invoke network
if(m_Config->Get<bool>("Networking.StartNetwork", false) == true)
boost::thread workerThread(&Game::NetworkFunction, this);
m_LastTime = glfwGetTime();
}