From 05d21998212aaca46209e612a18512beb2c8bf3d Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 25 Jan 2007 16:07:30 +0000 Subject: [PATCH] clients who are downloading can now receive chat messages and other notices git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6755 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 2 +- host_cmd.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host.c b/host.c index 2495e58c..1a8b0dd2 100644 --- a/host.c +++ b/host.c @@ -350,7 +350,7 @@ void SV_BroadcastPrint(const char *msg) for (i = 0, client = svs.clients;i < svs.maxclients;i++, client++) { - if (client->spawned && client->netconnection) + if (client->active && client->netconnection) { MSG_WriteByte(&client->netconnection->message, svc_print); MSG_WriteString(&client->netconnection->message, msg); diff --git a/host_cmd.c b/host_cmd.c index 97e45251..3c2409e4 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -987,7 +987,7 @@ void Host_Say(qboolean teamonly) // note: save is not a valid edict if fromServer is true save = host_client; for (j = 0, host_client = svs.clients;j < svs.maxclients;j++, host_client++) - if (host_client->spawned && (!teamonly || host_client->edict->fields.server->team == save->edict->fields.server->team)) + if (host_client->active && (!teamonly || host_client->edict->fields.server->team == save->edict->fields.server->team)) SV_ClientPrint(text); host_client = save; @@ -1093,13 +1093,13 @@ void Host_Tell_f(void) namebuf[playername_length] = 0; for (playernumber = 0; playernumber < svs.maxclients; playernumber++) { - if (!svs.clients[playernumber].spawned) + if (!svs.clients[playernumber].active) continue; if (strcasecmp(svs.clients[playernumber].name, namebuf) == 0) break; } } - if(playernumber < 0 || playernumber >= svs.maxclients || !(svs.clients[playernumber].spawned)) + if(playernumber < 0 || playernumber >= svs.maxclients || !(svs.clients[playernumber].active)) { if (fromServer) Con_Print("Host_Tell: invalid player name/ID\n"); -- 2.39.2