From 5d76717a7cea3e31a2c9b27389d1a0753fa872ce Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 26 Sep 2020 21:35:56 +0000 Subject: [PATCH] cl_main: Disconnect only if we're connected or playing a demo. Fixes Steel Storm main menu music cutting out. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12951 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_main.c b/cl_main.c index 3a84e2dd..2f3af19a 100644 --- 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")) -- 2.39.2