]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix another crash on level change caused by NetConn_ServerFrame being called
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Oct 2005 05:17:27 +0000 (05:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 30 Oct 2005 05:17:27 +0000 (05:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5783 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 3740179a8047f384f5108b977bf642a86d0e7c6d..7afb4cb5491afe637c0ee3fb4ebc74b06ad4b61c 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1590,6 +1590,10 @@ Tell all the clients that the server is changing levels
 */
 void SV_SendReconnect (void)
 {
+#if 1
+       MSG_WriteByte(&sv.reliable_datagram, svc_stufftext);
+       MSG_WriteString(&sv.reliable_datagram, "reconnect\n");
+#else
        qbyte data[128];
        sizebuf_t msg;
 
@@ -1603,6 +1607,7 @@ void SV_SendReconnect (void)
 
        if (cls.state != ca_dedicated)
                Cmd_ExecuteString ("reconnect\n", src_command);
+#endif
 }