aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-09-13 12:04:48 +0000
committerTravis Howell2003-09-13 12:04:48 +0000
commit989f3f921533e95b669054f0d13040353f4f1a15 (patch)
tree3019337d1eee2324afa574d886fa5178a88774eb /scumm
parent41a17b9da6ed1f4345bb0d492ac617862d0602f2 (diff)
downloadscummvm-rg350-989f3f921533e95b669054f0d13040353f4f1a15.tar.gz
scummvm-rg350-989f3f921533e95b669054f0d13040353f4f1a15.tar.bz2
scummvm-rg350-989f3f921533e95b669054f0d13040353f4f1a15.zip
Another fm towns sound fix from Hibernatus
svn-id: r10217
Diffstat (limited to 'scumm')
-rw-r--r--scumm/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index d40ff40c42..ce461f1036 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -350,8 +350,8 @@ void Sound::playSound(int soundID) {
int waveSize = READ_LE_UINT32(ptr + 0x0C);
int loopStart = READ_LE_UINT32(ptr + 0x10);
int loopEnd = READ_LE_UINT32(ptr + 0x14);
- if (loopEnd < waveSize && loopEnd > 0)
- waveSize = loopEnd;
+ if (loopEnd == 0 && loopStart > 0)
+ waveSize = loopStart;
// it's not exactly * 10, maybe it's not even linear, but * 10 sounds ok.
rate = READ_LE_UINT32(ptr + 0x18) * 10;