diff options
author | Nicola Mettifogo | 2007-08-13 23:58:17 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-08-13 23:58:17 +0000 |
commit | 3c43ebd49f08c5d41aca61576d1a08e2957c9eb6 (patch) | |
tree | ca89bb55170db328a92f62aed507b371c43273b2 /engines/parallaction/parallaction.cpp | |
parent | 681ae6ca8514d24a51e2c1e7ecbf8ac6fa633013 (diff) | |
download | scummvm-rg350-3c43ebd49f08c5d41aca61576d1a08e2957c9eb6.tar.gz scummvm-rg350-3c43ebd49f08c5d41aca61576d1a08e2957c9eb6.tar.bz2 scummvm-rg350-3c43ebd49f08c5d41aca61576d1a08e2957c9eb6.zip |
Added invalid opcode entries in slot 0 of opcode lists, and adjusted indices to avoid small decrements.
svn-id: r28603
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 85d5bf027f..2a53eb11a2 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -851,7 +851,7 @@ int Table::lookup(const char* s) { void Parallaction::initOpcodes() { static const Opcode op0[] = { - INSTRUCTION_PARSER(defLocal), // unknown opcode -> local definition + INSTRUCTION_PARSER(defLocal), // invalid opcode -> local definition INSTRUCTION_PARSER(animation), // on INSTRUCTION_PARSER(animation), // off INSTRUCTION_PARSER(x), @@ -876,6 +876,7 @@ void Parallaction::initOpcodes() { static const Opcode op1[] = { + INSTRUCTION_OPCODE(invalid), INSTRUCTION_OPCODE(on), INSTRUCTION_OPCODE(off), INSTRUCTION_OPCODE(set), // x @@ -900,6 +901,7 @@ void Parallaction::initOpcodes() { _vm->_instructionOpcodes = op1; static const Opcode op2[] = { + COMMAND_PARSER(Invalid), COMMAND_PARSER(Flags), // set COMMAND_PARSER(Flags), // clear COMMAND_PARSER(Animation), // start @@ -921,6 +923,7 @@ void Parallaction::initOpcodes() { _commandParsers = op2; static const Opcode op3[] = { + COMMAND_OPCODE(invalid), COMMAND_OPCODE(set), COMMAND_OPCODE(clear), COMMAND_OPCODE(start), |