don't count server clients as clients

This commit is contained in:
Bill Currie 2003-03-06 19:06:10 +00:00
parent f70b1fbafd
commit 7bdf1bdb90

View file

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