Added a "StartNetwork" bool to DefaultConfig.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
[Debug]
|
||||
|
||||
LogLevel=1
|
||||
|
||||
|
||||
[Video]
|
||||
|
||||
Fullscreen=false
|
||||
|
||||
VSYNC=false
|
||||
|
||||
Width=1280
|
||||
Height=720
|
||||
|
||||
Height=720
|
||||
[Networking]
|
||||
StartNetwork=false
|
||||
+4
-3
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user