aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-14 13:52:24 +0000
committerJohannes Schickel2008-05-14 13:52:24 +0000
commit7fd9e149f9cf88d58762a656d0d806ae185bc914 (patch)
tree5956ed3e3adf28499bb2a24c1373167cf4089e2d
parentf11c08d9b71c50992a9dd45e7b07b9edcefb1d13 (diff)
downloadscummvm-rg350-7fd9e149f9cf88d58762a656d0d806ae185bc914.tar.gz
scummvm-rg350-7fd9e149f9cf88d58762a656d0d806ae185bc914.tar.bz2
scummvm-rg350-7fd9e149f9cf88d58762a656d0d806ae185bc914.zip
Possibly fixed bug #1963700 "KYRA2: Nonresponsive clicks".
svn-id: r32112
-rw-r--r--engines/kyra/sequences_v2.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/engines/kyra/sequences_v2.cpp b/engines/kyra/sequences_v2.cpp
index aef510a616..5d4b826ec2 100644
--- a/engines/kyra/sequences_v2.cpp
+++ b/engines/kyra/sequences_v2.cpp
@@ -102,17 +102,13 @@ void KyraEngine_v2::processAnimationScript(int allowSkip, int resetChar) {
uint32 delayEnd = _system->getMillis() + _animDelayTime * _tickLength;
- while ((!skipFlag() || !allowSkip) && _system->getMillis() < delayEnd) {
- if (_chatText)
- updateWithText();
- else
- update();
+ while ((!skipFlag() || !allowSkip) && _system->getMillis() < delayEnd)
+ delay(10, true);
- delay(10);
- }
-
- if (skipFlag())
+ if (skipFlag()) {
resetSkipFlag();
+ break;
+ }
}
if (resetChar) {