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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user