equal
deleted
inserted
replaced
20 net_server = new NetworkServer(game_state, listen_port); |
20 net_server = new NetworkServer(game_state, listen_port); |
21 } |
21 } |
22 |
22 |
23 void Engine::setupNetworkClient (const std::string &connect_host, const std::string &connect_port) { |
23 void Engine::setupNetworkClient (const std::string &connect_host, const std::string &connect_port) { |
24 // connect_to |
24 // connect_to |
25 CL_IPAddress connect_addr(connect_host, connect_port); |
25 NetworkAddress connect_addr(connect_host, connect_port); |
26 |
26 |
27 // create the client |
27 // create the client |
28 net_client = new NetworkClient(*this, game_state, connect_addr); |
28 net_client = new NetworkClient(*this, game_state, connect_addr); |
29 } |
29 } |
30 |
30 |