Importing ratbox3 r25213 changeset
This commit is contained in:
parent
3c0c1f5fc1
commit
4bb146df3c
|
@ -336,7 +336,7 @@ initialize_global_set_options(void)
|
|||
|
||||
GlobalSetOptions.maxclients = ServerInfo.default_max_clients;
|
||||
|
||||
if(GlobalSetOptions.maxclients > (maxconnections - MAX_BUFFER))
|
||||
if(GlobalSetOptions.maxclients > (maxconnections - MAX_BUFFER) || (GlobalSetOptions.maxclients <= 0))
|
||||
GlobalSetOptions.maxclients = maxconnections - MAX_BUFFER;
|
||||
|
||||
GlobalSetOptions.autoconn = 1;
|
||||
|
|
Loading…
Reference in New Issue