X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_demo.c;h=eb4ab55e933592bbace8c10a2220e6970c9bd93d;hp=a962785fbf79e8f8fe178b562fce1b70c0c143b5;hb=e3d73d3b315e86fc321b6ef02bb7dc14742d156a;hpb=2ccc0bb94e77f4b95e4228178099c3a13fb17ea2 diff --git a/cl_demo.c b/cl_demo.c index a962785f..eb4ab55e 100644 --- a/cl_demo.c +++ b/cl_demo.c @@ -422,10 +422,7 @@ void CL_PlayDemo(const char *demo) cls.demostarting = true; // disconnect from server - if(cls.state == ca_connected) - CL_Disconnect(); - if(sv.active) - SV_Shutdown(); + CL_Disconnect(); // update networking ports (this is mainly just needed at startup) NetConn_UpdateSockets(); @@ -683,8 +680,8 @@ static void CL_Demos_f(cmd_state_t *cmd) return; if (cls.demonum == -1) cls.demonum = 1; - CL_Disconnect_f (cmd); - CL_NextDemo (); + CL_Disconnect(); + CL_NextDemo(); } /*