Fix pausing sound effects in earlier games.

svn-id: r27150
This commit is contained in:
Travis Howell 2007-06-06 23:48:07 +00:00
parent 2fd518ff73
commit 06aa0fb25e

View file

@ -674,6 +674,9 @@ void Sound::ambientPause(bool b) {
// Elvira 1/2 and Waxworks specific
void Sound::playRawData(byte *soundData, uint sound, uint size) {
if (_effectsPaused)
return;
byte *buffer = (byte *)malloc(size);
memcpy(buffer, soundData, size);