From 69e1c6a880c7eec0e716d90a4362f30657b153b5 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 3 Jul 2019 17:53:08 +0000 Subject: [PATCH] Ignore maxclients limit when adding splitscreen seats for loopback. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5488 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/server/sv_main.c b/engine/server/sv_main.c index 79b0dc137..eb019daf5 100644 --- a/engine/server/sv_main.c +++ b/engine/server/sv_main.c @@ -2241,6 +2241,7 @@ client_t *SV_AddSplit(client_t *controller, char *info, int id) else clients++; } + if (controller->netchan.remote_address.type != NA_LOOPBACK) //ignore limits for the local client (they could just tweak the cvar instead, but that's a hassle) if ((asspec?spectators:clients) >= (asspec?maxspectators.ival:maxclients.ival)) { SV_PrintToClient(controller, PRINT_HIGH, "Server full, cannot add new seat\n");