mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
don't count server clients as clients
This commit is contained in:
parent
f70b1fbafd
commit
7bdf1bdb90
1 changed files with 4 additions and 1 deletions
|
@ -727,16 +727,19 @@ client_t *
|
|||
SV_AllocClient (int spectator, int server)
|
||||
{
|
||||
client_t *cl;
|
||||
int i, clients, spectators, free;
|
||||
int i, clients, spectators, free, bots;
|
||||
static int userid;
|
||||
|
||||
// count up the clients and spectators
|
||||
clients = 0;
|
||||
spectators = 0;
|
||||
free = 0;
|
||||
bots = 0;
|
||||
for (i = 0, cl = svs.clients; i < MAX_CLIENTS; i++, cl++) {
|
||||
if (cl->state == cs_free)
|
||||
free++;
|
||||
else if (cl->state == cs_server)
|
||||
bots++;
|
||||
else if (cl->spectator)
|
||||
spectators++;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue