]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed bug that caused SV_SpawnServer to fail to send reconnect commands to clients...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Mar 2006 05:21:43 +0000 (05:21 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Mar 2006 05:21:43 +0000 (05:21 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6089 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 9c03d0a6fe3ba8eb14e9b381b23e2bff11dc793d..648e107bebbf6836fac9c3c96bcd0befdb50ee1b 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1673,9 +1673,15 @@ void SV_SpawnServer (const char *server)
 //
        if (sv.active)
        {
 //
        if (sv.active)
        {
-               // Tell all the clients that the server is changing levels
-               MSG_WriteByte(&sv.reliable_datagram, svc_stufftext);
-               MSG_WriteString(&sv.reliable_datagram, "reconnect\n");
+               client_t *client;
+               for (i = 0, client = svs.clients;i < svs.maxclients;i++, client++)
+               {
+                       if (client->netconnection)
+                       {
+                               MSG_WriteByte(&client->netconnection->message, svc_stufftext);
+                               MSG_WriteString(&client->netconnection->message, "reconnect\n");
+                       }
+               }
        }
        else
        {
        }
        else
        {