]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
clients who are downloading can now receive chat messages and other notices
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Jan 2007 16:07:30 +0000 (16:07 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Jan 2007 16:07:30 +0000 (16:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6755 d7cf8633-e32d-0410-b094-e92efae38249

host.c
host_cmd.c

diff --git a/host.c b/host.c
index 2495e58c066cd7f74a36f1f3cd85e49c0e214082..1a8b0dd2e52e1aab434a3827268b047b134552bc 100644 (file)
--- 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);
index 97e45251e88e40b733e632997b26217054c855b1..3c2409e45b86c9df16b1a21fad76b18a25265303 100644 (file)
@@ -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");