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
This commit is contained in:
Spoike 2019-07-03 17:53:08 +00:00
parent 748f373783
commit 69e1c6a880
1 changed files with 1 additions and 0 deletions

View File

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