Skip to content

Commit

Permalink
FULLPIPE: Restart SFX on request instead of skipping it.
Browse files Browse the repository at this point in the history
This matches the original and fixes the footstep sounds.
  • Loading branch information
sev- committed Nov 30, 2016
1 parent 7e80a89 commit 6071d1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/fullpipe/sound.cpp
Expand Up @@ -222,8 +222,9 @@ void Sound::setPanAndVolume(int vol, int pan) {
void Sound::play(int flag) {
Audio::SoundHandle *handle = getHandle();

if (g_fp->_mixer->isSoundHandleActive(*handle))
return;
if (g_fp->_mixer->isSoundHandleActive(*handle)) { // We need to restart the music
g_fp->_mixer->stopHandle(*handle);
}

byte *soundData = loadData();
Common::MemoryReadStream *dataStream = new Common::MemoryReadStream(soundData, getDataSize());
Expand Down

0 comments on commit 6071d1b

Please sign in to comment.