aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-09-10 18:44:53 +0000
committerTorbjörn Andersson2006-09-10 18:44:53 +0000
commitc66ec787d26abdd37ef1fbca35fb43e6abca4e69 (patch)
tree8bfcd3165d69ea727797c3c66389de9b3144acd9 /engines/kyra
parent632a1a3a2269b4c41a9ccb8bc077e803e3da1b46 (diff)
downloadscummvm-rg350-c66ec787d26abdd37ef1fbca35fb43e6abca4e69.tar.gz
scummvm-rg350-c66ec787d26abdd37ef1fbca35fb43e6abca4e69.tar.bz2
scummvm-rg350-c66ec787d26abdd37ef1fbca35fb43e6abca4e69.zip
Test _skipFlag a bit more often.
svn-id: r23867
Diffstat (limited to 'engines/kyra')
-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) {