From: havoc Date: Thu, 25 Jan 2007 16:07:30 +0000 (+0000) Subject: clients who are downloading can now receive chat messages and other notices X-Git-Tag: xonotic-v0.1.0preview~3655 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05d21998212aaca46209e612a18512beb2c8bf3d;p=xonotic%2Fdarkplaces.git 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 --- 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");