]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_demo.c
the record command now disconnects you if starting a new map, this fixes a crash...
[xonotic/darkplaces.git] / cl_demo.c
index 81e065dc2b20ce82e1c20a674368dbdf94708efb..f4a4cf4ce90104bbd3c34581922a0e8c221c03ce 100644 (file)
--- a/cl_demo.c
+++ b/cl_demo.c
@@ -281,6 +281,9 @@ void CL_Record_f (void)
                return;
        }
 
+       if (cls.state == ca_connected)
+               CL_Disconnect();
+
        // write the forced cd track number, or -1
        if (c == 4)
        {