From: lordhavoc Date: Tue, 22 Jan 2002 05:36:02 +0000 (+0000) Subject: make dedicated work again X-Git-Tag: RELEASE_0_2_0_RC1~700 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=c0ae57bf5351638d583698717f3d2290e5ea419b make dedicated work again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1384 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index b5e15010..5eb85160 100644 --- a/cl_main.c +++ b/cl_main.c @@ -165,6 +165,9 @@ This is also called on Host_Error, so it shouldn't cause any errors */ void CL_Disconnect (void) { + if (cls.state == ca_dedicated) + return; + // stop sounds (especially looping!) S_StopAllSounds (true); diff --git a/host.c b/host.c index 465c82d8..b404789e 100644 --- a/host.c +++ b/host.c @@ -442,8 +442,7 @@ void Host_ShutdownServer(qboolean crash) sv.active = false; // stop all client sounds immediately - if (cls.state == ca_connected) - CL_Disconnect (); + CL_Disconnect (); // flush any pending messages - like the score!!! start = Sys_DoubleTime(); diff --git a/host_cmd.c b/host_cmd.c index f706171c..a97af9f6 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -1603,8 +1603,6 @@ Return to looping demos */ void Host_Stopdemo_f (void) { - if (cls.state == ca_dedicated) - return; if (!cls.demoplayback) return; CL_Disconnect ();