aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sequences_v2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/sequences_v2.cpp')
-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) {