diff options
author | Eric Fry | 2018-05-29 22:30:54 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 423a8ec43351d1cbba84b67ad1c038ea4ca4e108 (patch) | |
tree | e929599ecd75feffc8e2bc6cdfc57436985dec20 /engines/illusions/sequenceopcodes.cpp | |
parent | bdc477bef9d4ec9691e77c4de867a30d08865c46 (diff) | |
download | scummvm-rg350-423a8ec43351d1cbba84b67ad1c038ea4ca4e108.tar.gz scummvm-rg350-423a8ec43351d1cbba84b67ad1c038ea4ca4e108.tar.bz2 scummvm-rg350-423a8ec43351d1cbba84b67ad1c038ea4ca4e108.zip |
ILLUSIONS: Replace 0x40004 with CURSOR_OBJECT_ID constant
Fix pan bug in starship enterprise scene
Add sequence opcode name to debug log
Hack to fix endless loop bug outside the starship enterprise
Diffstat (limited to 'engines/illusions/sequenceopcodes.cpp')
-rw-r--r-- | engines/illusions/sequenceopcodes.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/illusions/sequenceopcodes.cpp b/engines/illusions/sequenceopcodes.cpp index 21152097d9..b07e9ecbaa 100644 --- a/engines/illusions/sequenceopcodes.cpp +++ b/engines/illusions/sequenceopcodes.cpp @@ -45,12 +45,14 @@ SequenceOpcodes::~SequenceOpcodes() { void SequenceOpcodes::execOpcode(Control *control, OpCall &opCall) { if (!_opcodes[opCall._op]) error("SequenceOpcodes::execOpcode() Unimplemented opcode %d", opCall._op); - debug(3, "execOpcode(%d)", opCall._op); + debug(3, "execSequenceOpcode(%d) %s objectID: %08X", opCall._op, _opcodeNames[opCall._op].c_str(), control->_objectId); (*_opcodes[opCall._op])(control, opCall); } typedef Common::Functor2Mem<Control*, OpCall&, void, SequenceOpcodes> SequenceOpcodeI; -#define OPCODE(op, func) _opcodes[op] = new SequenceOpcodeI(this, &SequenceOpcodes::func); +#define OPCODE(op, func) \ + _opcodes[op] = new SequenceOpcodeI(this, &SequenceOpcodes::func); \ + _opcodeNames[op] = #func; void SequenceOpcodes::initOpcodes() { // First clear everything |