diff options
author | Walter van Niftrik | 2009-10-11 02:47:07 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-10-11 02:47:07 +0000 |
commit | b2a148e12c49043855775f414249d49f5ee78b59 (patch) | |
tree | daf04547e390cd6fca0446c3275be67f9449f575 /engines/sci/engine | |
parent | 2d3979ff6e9db470e587eb59517c09b01e078e66 (diff) | |
download | scummvm-rg350-b2a148e12c49043855775f414249d49f5ee78b59.tar.gz scummvm-rg350-b2a148e12c49043855775f414249d49f5ee78b59.tar.bz2 scummvm-rg350-b2a148e12c49043855775f414249d49f5ee78b59.zip |
SCI: Fix hang in KQ6 book worm scene
svn-id: r44889
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/ksound.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/engine/ksound.cpp b/engines/sci/engine/ksound.cpp index feb5bd523f..8daaf6f22a 100644 --- a/engines/sci/engine/ksound.cpp +++ b/engines/sci/engine/ksound.cpp @@ -944,6 +944,15 @@ static reg_t kDoSoundSci1Late(EngineState *s, int argc, reg_t *argv) { break; } case _K_SCI1_SOUND_SET_HANDLE_LOOP : { + if (!GET_SEL32(obj, nodePtr).isNull()) { + uint16 looping = argv[2].toUint16(); + + if (looping < 65535) + looping = 1; + + s->_sound.sfx_song_set_loops(handle, looping); + PUT_SEL32V(obj, loop, looping); + } break; } case _K_SCI1_SOUND_UPDATE_CUES : { |