diff options
author | Nicola Mettifogo | 2008-07-30 07:58:25 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-07-30 07:58:25 +0000 |
commit | 3dbeeaf8a10a07491465657f6effebe341251635 (patch) | |
tree | eb791b2c95193556ff97cf032db1eb027391f0b2 /engines/parallaction/exec_br.cpp | |
parent | 1e2988b7f75adc471e3dc39aa42eb99e33727023 (diff) | |
download | scummvm-rg350-3dbeeaf8a10a07491465657f6effebe341251635.tar.gz scummvm-rg350-3dbeeaf8a10a07491465657f6effebe341251635.tar.bz2 scummvm-rg350-3dbeeaf8a10a07491465657f6effebe341251635.zip |
* Unified implementation of flow control opcodes in NS and BRA
* Simplified script execution loop and context
svn-id: r33437
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r-- | engines/parallaction/exec_br.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index a2efe8b90c..0b7400f0f7 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -374,13 +374,6 @@ DECLARE_INSTRUCTION_OPCODE(set) { } -DECLARE_INSTRUCTION_OPCODE(loop) { - InstructionPtr inst = *_ctxt.inst; - - _ctxt.program->_loopCounter = inst->_opB.getRValue(); - _ctxt.program->_loopStart = _ctxt.inst; -} - DECLARE_INSTRUCTION_OPCODE(inc) { InstructionPtr inst = *_ctxt.inst; @@ -504,16 +497,6 @@ DECLARE_INSTRUCTION_OPCODE(stop) { warning("Parallaction_br::instOp_stop not yet implemented"); } -DECLARE_INSTRUCTION_OPCODE(endscript) { - if ((_ctxt.anim->_flags & kFlagsLooping) == 0) { - _ctxt.anim->_flags &= ~kFlagsActing; - _vm->_cmdExec->run(_ctxt.anim->_commands, _ctxt.anim); - _ctxt.program->_status = kProgramDone; - } - _ctxt.program->_ip = _ctxt.program->_instructions.begin(); - - _ctxt.suspend = true; -} void CommandExec_br::init() { Common::Array<const Opcode*> *table = 0; @@ -585,7 +568,7 @@ void ProgramExec_br::init() { INSTRUCTION_OPCODE(set); // f INSTRUCTION_OPCODE(loop); INSTRUCTION_OPCODE(endloop); - INSTRUCTION_OPCODE(null); // show + INSTRUCTION_OPCODE(show); // show INSTRUCTION_OPCODE(inc); INSTRUCTION_OPCODE(inc); // dec INSTRUCTION_OPCODE(set); |