mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
Importing ratbox3 r25213 changeset
This commit is contained in:
parent
073883daeb
commit
b3e9f8ebc2
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue