Added a "StartNetwork" bool to DefaultConfig.
This commit is contained in:
@@ -1,8 +1,16 @@
|
|||||||
[Debug]
|
[Debug]
|
||||||
|
|
||||||
LogLevel=1
|
LogLevel=1
|
||||||
|
|
||||||
|
|
||||||
[Video]
|
[Video]
|
||||||
|
|
||||||
Fullscreen=false
|
Fullscreen=false
|
||||||
|
|
||||||
VSYNC=false
|
VSYNC=false
|
||||||
|
|
||||||
Width=1280
|
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
|
// Create a TEST WORLD
|
||||||
m_World = new HardcodedTestWorld();
|
m_World = new HardcodedTestWorld();
|
||||||
|
|
||||||
// TEMP: Invoke network
|
|
||||||
|
// Invoke network
|
||||||
boost::thread workerThread(&Game::NetworkFunction, this);
|
if(m_Config->Get<bool>("Networking.StartNetwork", false) == true)
|
||||||
|
boost::thread workerThread(&Game::NetworkFunction, this);
|
||||||
|
|
||||||
m_LastTime = glfwGetTime();
|
m_LastTime = glfwGetTime();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user