Client now reads address and port from config file. Default address is set to local host.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user