diff options
author | Nicola Mettifogo | 2008-02-09 22:07:51 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-09 22:07:51 +0000 |
commit | cf724e889ce551082a1c3e443b11e9523f068e8d (patch) | |
tree | 5c7a3c53744d39fb4bdb9bbf3563e5dc9e39e710 /engines/parallaction/exec_ns.cpp | |
parent | bc257fc37809981e4189f30603ffaa7df7343e26 (diff) | |
download | scummvm-rg350-cf724e889ce551082a1c3e443b11e9523f068e8d.tar.gz scummvm-rg350-cf724e889ce551082a1c3e443b11e9523f068e8d.tar.bz2 scummvm-rg350-cf724e889ce551082a1c3e443b11e9523f068e8d.zip |
Added new debug command to dump scripts execution status.
svn-id: r30840
Diffstat (limited to 'engines/parallaction/exec_ns.cpp')
-rw-r--r-- | engines/parallaction/exec_ns.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/parallaction/exec_ns.cpp b/engines/parallaction/exec_ns.cpp index 3ddc9fde06..f86930a56e 100644 --- a/engines/parallaction/exec_ns.cpp +++ b/engines/parallaction/exec_ns.cpp @@ -180,6 +180,7 @@ DECLARE_INSTRUCTION_OPCODE(endscript) { if ((_instRunCtxt.anim->_flags & kFlagsLooping) == 0) { _instRunCtxt.anim->_flags &= ~kFlagsActing; runCommands(_instRunCtxt.anim->_commands, _instRunCtxt.anim); + _instRunCtxt.program->_status = kProgramDone; } _instRunCtxt.program->_ip = _instRunCtxt.program->_instructions.begin(); @@ -386,6 +387,8 @@ void Parallaction_ns::runScripts() { InstructionList::iterator inst = (*it)->_ip; while (((*inst)->_index != INST_SHOW) && (a->_flags & kFlagsActing)) { + (*it)->_status = kProgramRunning; + debugC(9, kDebugExec, "Animation: %s, instruction: %s", a->_name, _instructionNamesRes[(*inst)->_index - 1]); _instRunCtxt.inst = inst; |