From: havoc Date: Sun, 30 Oct 2005 05:17:27 +0000 (+0000) Subject: fix another crash on level change caused by NetConn_ServerFrame being called X-Git-Tag: xonotic-v0.1.0preview~4501 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a55d6195cb9f918f4b6789ff96dbe82a726b8aaf;p=xonotic%2Fdarkplaces.git fix another crash on level change caused by NetConn_ServerFrame being called git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5783 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 3740179a..7afb4cb5 100644 --- 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 }