fix the maxclient issue

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5435 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-21 23:28:32 +00:00
parent 1fd43d8aeb
commit dd59cbc8f1
+2
View File
@@ -43,6 +43,8 @@ void disconnectmaster()
ENetSocket connectmaster()
{
if(!mastername[0]) return ENET_SOCKET_NULL;
extern servercommandline scl;
if(scl.maxclients>20) { logline(ACLOG_WARNING, "maxclient exceeded: cannot register"); return ENET_SOCKET_NULL; }
if(masteraddress.host == ENET_HOST_ANY)
{