]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_cmds.c
removed number field from client_t struct as it seemed to be behaving unreliably...
[xonotic/darkplaces.git] / pr_cmds.c
index 7a85f1fff79cc2f70872de5870ab1dc3065e038f..06803886f14387f7438deb6f50b833971485f261 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -2230,7 +2230,7 @@ void PF_setcolor (void)
                client->old_colors = client->colors;
                // send notification to all clients
                MSG_WriteByte (&sv.reliable_datagram, svc_updatecolors);
-               MSG_WriteByte (&sv.reliable_datagram, client->number);
+               MSG_WriteByte (&sv.reliable_datagram, client - svs.clients);
                MSG_WriteByte (&sv.reliable_datagram, client->colors);
        }
 }