Client now reads address and port from config file. Default address is set to local host.

This commit is contained in:
stiffly
2015-12-18 11:22:13 +01:00
parent 0b714e593f
commit 5c1a93021b
4 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ void Game::networkFunction()
std::cin >> inputMessage;
if (inputMessage == "c" || inputMessage == "C") {
m_IsClientOrServer = true;
m_ClientOrServer = new Client();
m_ClientOrServer = new Client(m_Config);
}
if (inputMessage == "s" || inputMessage == "S") {
m_IsClientOrServer = true;