Fixed disabling sound

This commit is contained in:
pagefault
2001-09-04 14:32:24 +00:00
parent 46978e82dc
commit 96c6e0a3b5

View File

@@ -739,7 +739,13 @@ ReInitSound()
{
WAVEFORMATEX wfx;
if (!SoundEnabled) return FALSE;
if (SoundEnabled == 0)
{
lpSoundBuffer->Stop();
lpSoundBuffer->Release();
ReleaseDirectSound();
return FALSE;
}
lpSoundBuffer->Stop();
lpSoundBuffer->Release();