From c66ec787d26abdd37ef1fbca35fb43e6abca4e69 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 10 Sep 2006 18:44:53 +0000 Subject: Test _skipFlag a bit more often. svn-id: r23867 --- engines/kyra/sequences_v2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/kyra') 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) { -- cgit v1.2.3