diff options
author | johndoe123 | 2014-04-02 13:16:01 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 08899f5e9b3d8af2b147610e164be7f561ca0bd9 (patch) | |
tree | e432ba0c6967adf0bfa1455261e6390c4537dfaa /engines/illusions/sequenceopcodes.cpp | |
parent | 8d7d6599b9bc29152cbccbcec6b2e25b66272715 (diff) | |
download | scummvm-rg350-08899f5e9b3d8af2b147610e164be7f561ca0bd9.tar.gz scummvm-rg350-08899f5e9b3d8af2b147610e164be7f561ca0bd9.tar.bz2 scummvm-rg350-08899f5e9b3d8af2b147610e164be7f561ca0bd9.zip |
ILLUSIONS: Implement calcPointDirection
- Implement sequence opcode 1
Diffstat (limited to 'engines/illusions/sequenceopcodes.cpp')
-rw-r--r-- | engines/illusions/sequenceopcodes.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/illusions/sequenceopcodes.cpp b/engines/illusions/sequenceopcodes.cpp index e53a7ec222..818b6816a1 100644 --- a/engines/illusions/sequenceopcodes.cpp +++ b/engines/illusions/sequenceopcodes.cpp @@ -56,6 +56,7 @@ void SequenceOpcodes::initOpcodes() { for (uint i = 0; i < 256; ++i) _opcodes[i] = 0; // Register opcodes + OPCODE(1, opYield); OPCODE(2, opSetFrameIndex); OPCODE(3, opEndSequence); OPCODE(4, opIncFrameDelay); @@ -103,6 +104,10 @@ void SequenceOpcodes::freeOpcodes() { #define ARG_INT16(name) int16 name = opCall.readSint16(); debug(1, "ARG_INT16(" #name " = %d)", name); #define ARG_UINT32(name) uint32 name = opCall.readUint32(); debug(1, "ARG_UINT32(" #name " = %08X)", name); +void SequenceOpcodes::opYield(Control *control, OpCall &opCall) { + opCall._result = 2; +} + void SequenceOpcodes::opSetFrameIndex(Control *control, OpCall &opCall) { ARG_INT16(frameIndex); if (control->_actor->_flags & 0x80) { |