channel limits

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4858 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-05-14 18:19:24 +00:00
parent 96c674cfab
commit 4768241b3d
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -95,7 +95,11 @@ void connectserv_(const char *servername, const char *serverport = NULL, const c
address.host = ENET_HOST_BROADCAST;
}
if(!clienthost) clienthost = enet_host_create(NULL, 2, 0, 0);
if(!clienthost)
{
clienthost = enet_host_create(NULL, 2, 0, 0);
if(clienthost) enet_host_channel_limit(clienthost, 3);
}
if(clienthost)
{