the record command now disconnects you if starting a new map, this fixes a crash...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Feb 2007 02:26:48 +0000 (02:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Feb 2007 02:26:48 +0000 (02:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6846 d7cf8633-e32d-0410-b094-e92efae38249

cl_demo.c

index 81e065d..f4a4cf4 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)
        {