From: cloudwalk Date: Sat, 26 Sep 2020 21:35:56 +0000 (+0000) Subject: cl_main: Disconnect only if we're connected or playing a demo. Fixes Steel Storm... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5d76717a7cea3e31a2c9b27389d1a0753fa872ce;p=xonotic%2Fdarkplaces.git 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 --- 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"))