From: divverent Date: Fri, 21 Dec 2007 20:17:01 +0000 (+0000) Subject: only CDAudio_SysStop if a CD was actually playing (fixes error message spam) X-Git-Tag: xonotic-v0.1.0preview~2658 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fbcae49bf89a2ba1dbd7c1e4feb520d8ab6285fa;p=xonotic%2Fdarkplaces.git only CDAudio_SysStop if a CD was actually playing (fixes error message spam) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7833 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cd_shared.c b/cd_shared.c index 3bda8928..5e3934ec 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -217,7 +217,7 @@ void CDAudio_Stop (void) S_StopChannel (faketrack); faketrack = -1; } - else if (CDAudio_SysStop() == -1) + else if (cdPlaying && (CDAudio_SysStop() == -1)) return; wasPlaying = false;