mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: net: cap --maxclients
This commit is contained in:
1 parent
c8d42bbf20
commit
4b30f52b32
1 file changed
+1
-1
+1
-1
@@ -338,7 +338,7 @@ void netInit(void)
|
||||
}
|
||||
|
||||
const s32 argmaxclients = sysArgGetInt("--maxclients", -1);
|
||||
if (argmaxclients > 0) {
|
||||
if (argmaxclients > 0 && argmaxclients <= NET_MAX_CLIENTS) {
|
||||
g_NetMaxClients = argmaxclients;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user