]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
CDAudio_Stop: also stop a paused track (fixes bgmvolume 0 related segfault)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Dec 2007 16:22:07 +0000 (16:22 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Dec 2007 16:22:07 +0000 (16:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7799 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c

index e56fa388911f8c616c0a4ad2d410855e8d8aac82..70f86cdb26586ab072333abbde3e39d8ecbe8cbc 100644 (file)
@@ -201,7 +201,7 @@ void CDAudio_Play (unsigned char track, qboolean looping)
 
 void CDAudio_Stop (void)
 {
-       if (!enabled || !cdPlaying)
+       if (!enabled)
                return;
 
        if (faketrack != -1)