make dedicated work again
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jan 2002 05:36:02 +0000 (05:36 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jan 2002 05:36:02 +0000 (05:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1384 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c
host.c
host_cmd.c

index b5e1501..5eb8516 100644 (file)
--- 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 465c82d..b404789 100644 (file)
--- 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();
index f706171..a97af9f 100644 (file)
@@ -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 ();