diff options
author | Johannes Schickel | 2006-06-03 00:30:28 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-03 00:30:28 +0000 |
commit | 48af506189f0629528444bb88ca7a6f8e957f6d4 (patch) | |
tree | 852fd81a8a31f64acf07536b1107c4f1c9a88656 | |
parent | 97b3b74ea1e5fa0fa82e6c08689a172b0d62c511 (diff) | |
download | scummvm-rg350-48af506189f0629528444bb88ca7a6f8e957f6d4.tar.gz scummvm-rg350-48af506189f0629528444bb88ca7a6f8e957f6d4.tar.bz2 scummvm-rg350-48af506189f0629528444bb88ca7a6f8e957f6d4.zip |
Fix for bug # 1497965 ("KYRA1: Skipping dialogue requires two clicks").
svn-id: r22848
-rw-r--r-- | engines/kyra/kyra.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/kyra/kyra.cpp b/engines/kyra/kyra.cpp index 14b5634411..06d3cecbb0 100644 --- a/engines/kyra/kyra.cpp +++ b/engines/kyra/kyra.cpp @@ -664,6 +664,10 @@ void KyraEngine::delay(uint32 amount, bool update, bool isMainLoop) { if (amount > 0 && !_skipFlag && !_quitFlag) { _system->delayMillis((amount > 10) ? 10 : amount); } + + if (_skipFlag) { + _sound->voiceStop(); + } } while (!_skipFlag && _system->getMillis() < start + amount && !_quitFlag); } |