Fixed compilation problems (why on earth didn't the compiler detect this earlier??)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7977 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
aaaa2f3b0d
commit
af29a627ce
@ -82,6 +82,7 @@ bool NetworkManager::initServer()
|
||||
|
||||
m_host = enet_host_create (& address /* the address to bind the server host to */,
|
||||
stk_config->m_max_karts /* number of connections */,
|
||||
0 /* channel limit */,
|
||||
0 /* incoming bandwidth */,
|
||||
0 /* outgoing bandwidth */ );
|
||||
if (m_host == NULL)
|
||||
@ -107,6 +108,7 @@ bool NetworkManager::initClient()
|
||||
{
|
||||
m_host = enet_host_create (NULL /* create a client host */,
|
||||
1 /* only allow 1 outgoing connection */,
|
||||
0 /* channel limit */,
|
||||
0 /* downstream bandwidth unlimited */,
|
||||
0 /* upstream bandwidth unlimited */ );
|
||||
|
||||
@ -125,7 +127,7 @@ bool NetworkManager::initClient()
|
||||
address.port = UserConfigParams::m_server_port;
|
||||
|
||||
/* Initiate the connection, allocating the two channels 0 and 1. */
|
||||
peer = enet_host_connect (m_host, &address, 2);
|
||||
peer = enet_host_connect (m_host, &address, 2, 0);
|
||||
|
||||
if (peer == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user