aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/sequences_v2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sequences_v2.cpp b/engines/kyra/sequences_v2.cpp
index 77e9958d0e..f997317045 100644
--- a/engines/kyra/sequences_v2.cpp
+++ b/engines/kyra/sequences_v2.cpp
@@ -67,7 +67,7 @@ void KyraEngine_v2::seq_playSequences(int startSeq, int endSeq) {
uint8 pal[768];
memset(pal, 0, sizeof(pal));
- for (int i = startSeq; i <= endSeq; i++) {
+ for (int i = startSeq; i <= endSeq && !_skipFlag; i++) {
uint32 seqDelay = 0;
int seqNum = 0;
@@ -94,7 +94,7 @@ void KyraEngine_v2::seq_playSequences(int startSeq, int endSeq) {
seqDelay += _system->getMillis();
bool mayEndLoop = sequences[i].timeOut;
- while(!_quitFlag && !_skipFlag) {
+ while (!_quitFlag && !_skipFlag) {
uint32 startTime = _system->getMillis();
if (sequences[i].callback) {