aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/sequences/sequencer.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-07-21 19:40:12 +0300
committerAndrei Prykhodko2018-07-21 19:40:12 +0300
commitcd87d769327dfb760460be471d7ffda63e339685 (patch)
tree91c389c38edd16a593a3f10c3c47db0ceaeaafa5 /engines/pink/objects/sequences/sequencer.cpp
parentcb3945cf4ffc9fc9eb3b834dafae43d57afe19ea (diff)
downloadscummvm-rg350-cd87d769327dfb760460be471d7ffda63e339685.tar.gz
scummvm-rg350-cd87d769327dfb760460be471d7ffda63e339685.tar.bz2
scummvm-rg350-cd87d769327dfb760460be471d7ffda63e339685.zip
PINK: added more debug output, removed unneeded
Diffstat (limited to 'engines/pink/objects/sequences/sequencer.cpp')
-rw-r--r--engines/pink/objects/sequences/sequencer.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/pink/objects/sequences/sequencer.cpp b/engines/pink/objects/sequences/sequencer.cpp
index 43f0239f03..8885fdc213 100644
--- a/engines/pink/objects/sequences/sequencer.cpp
+++ b/engines/pink/objects/sequences/sequencer.cpp
@@ -68,31 +68,32 @@ void Sequencer::authorSequence(Sequence *sequence, bool loadingSave) {
if (sequence) {
SequenceContext *context = new SequenceContext(sequence);
-
SequenceContext *confilct;
while((confilct = findConfilictingContextWith(context)) != nullptr)
confilct->getSequence()->forceEnd();
_context = context;
sequence->init(loadingSave);
+ debugC(5, kPinkDebugScripts, "Main Sequence %s started", sequence->getName().c_str());
}
}
-void Sequencer::authorParallelSequence(Sequence *seqeunce, bool loadingSave) {
- if (_context && _context->getSequence() == seqeunce)
+void Sequencer::authorParallelSequence(Sequence *sequence, bool loadingSave) {
+ if (_context && _context->getSequence() == sequence)
return;
for (uint i = 0; i < _parrallelContexts.size(); ++i) {
- if (_parrallelContexts[i]->getSequence() == seqeunce)
+ if (_parrallelContexts[i]->getSequence() == sequence)
return;
}
const Common::String leadName = _page->getLeadActor()->getName();
- SequenceContext *context = new SequenceContext(seqeunce);
+ SequenceContext *context = new SequenceContext(sequence);
if (!context->findState(leadName) && !findConfilictingContextWith(context)) {
_parrallelContexts.push_back(context);
- seqeunce->init(loadingSave);
+ sequence->init(loadingSave);
+ debugC(6, kPinkDebugScripts, "Parallel Sequence %s started", sequence->getName().c_str());
} else
delete context;
}