From: havoc Date: Fri, 16 Feb 2007 02:26:48 +0000 (+0000) Subject: the record command now disconnects you if starting a new map, this fixes a crash... X-Git-Tag: xonotic-v0.1.0preview~3569 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f336e24c44cff96ab283ba6063bc46a0e6c36f39;p=xonotic%2Fdarkplaces.git the record command now disconnects you if starting a new map, this fixes a crash if doing "playdemo demo1;record test;stop" git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6846 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_demo.c b/cl_demo.c index 81e065dc..f4a4cf4c 100644 --- 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) {