diff options
author | Travis Howell | 2004-09-15 12:12:43 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-15 12:12:43 +0000 |
commit | d7ccfd0350d291c8b0e29ae651b50b0b76756836 (patch) | |
tree | c9797bd45ec1e26891f504ee6febc1e59991a653 | |
parent | dd78319ee06739cd3423e48ee61a656421233707 (diff) | |
download | scummvm-rg350-d7ccfd0350d291c8b0e29ae651b50b0b76756836.tar.gz scummvm-rg350-d7ccfd0350d291c8b0e29ae651b50b0b76756836.tar.bz2 scummvm-rg350-d7ccfd0350d291c8b0e29ae651b50b0b76756836.zip |
Ooops
svn-id: r15125
-rw-r--r-- | scumm/sound.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 7301609a23..deb0a28e97 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -166,7 +166,7 @@ void Sound::playSound(int soundID, int offset) { debug(0, "playSound #%d", soundID); int music_offs, total_size; - uint tunes, skip = 0; + uint tracks, skip = 0; char buf[32]; File musicFile; @@ -178,16 +178,16 @@ void Sound::playSound(int soundID, int offset) { musicFile.seek(4, SEEK_SET); total_size = musicFile.readUint32BE(); musicFile.seek(+8, SEEK_CUR); - tunes = musicFile.readUint32LE(); + tracks = musicFile.readUint32LE(); if (soundID >= 8500) skip = (soundID - 8500); - if (soundID >= 8000) + else if (soundID >= 8000) skip = (soundID - 8000); else if (soundID >= 4000) skip = (soundID - 4000); - if (skip > tunes) + if (skip > tracks) skip = 0; musicFile.seek(+28, SEEK_CUR); @@ -242,11 +242,10 @@ void Sound::playSound(int soundID, int offset) { return; } - Common::hexdump(ptr, 0x30); // Support for SFX in Monkey Island 1, Mac version // This is rather hackish right now, but works OK. SFX are not sounding // 100% correct, though, not sure right now what is causing this. - if (READ_UINT32(ptr) == MKID('Mac1')) { + else if (READ_UINT32(ptr) == MKID('Mac1')) { // Read info from the header size = READ_BE_UINT32(ptr+0x60); |