]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cl_main: Disconnect only if we're connected or playing a demo. Fixes Steel Storm...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Sep 2020 21:35:56 +0000 (21:35 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 26 Sep 2020 21:35:56 +0000 (21:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12951 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 3a84e2ddfc7003f53c5e512ba3146c919c347b7b..2f3af19a31a5dd7fa267c6209b06b14d7171eff5 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -352,7 +352,7 @@ This is also called on Host_Error, so it shouldn't cause any errors
 */
 void CL_Disconnect(void)
 {
-       if (cls.state == ca_dedicated)
+       if (cls.state == ca_dedicated || cls.state != ca_connected || !cls.demoplayback)
                return;
 
        if (Sys_CheckParm("-profilegameonly"))