0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

Importing ratbox3 r25213 changeset

This commit is contained in:
Valery Yatsko 2008-04-09 23:22:51 +04:00
parent 073883daeb
commit b3e9f8ebc2

View file

@ -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;