Skip to content

Commit

Permalink
SHERLOCK: Fix mistakes in opcode lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Jun 7, 2015
1 parent 359d4cd commit a066d27
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion engines/sherlock/scalpel/scalpel_talk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ ScalpelTalk::ScalpelTalk(SherlockEngine *vm) : Talk(vm) {
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr
nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr
};

_opcodes = SCALPEL_OPCODES;
Expand Down
45 changes: 23 additions & 22 deletions engines/sherlock/talk.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,29 @@ enum {
OP_NEED_PASSWORD = 42,
OP_SET_SCENE_ENTRY_FLAG = 43,
OP_WALK_NPC_TO_CANIM = 44,
OP_WALK_HOLMES_AND_NPC_TO_COORDS = 45,
OP_SET_NPC_TALK_FILE = 46,
OP_TURN_NPC_OFF = 47,
OP_TURN_NPC_ON = 48,
OP_NPC_DESC_ON_OFF = 49,
OP_NPC_PATH_PAUSE_TAKING_NOTES = 50,
OP_NPC_PATH_PAUSE_LOOKING_HOLMES = 51,
OP_ENABLE_TALK_INTERRUPTS = 52,
OP_DISABLE_TALK_INTERRUPTS = 53,
OP_SET_NPC_INFO_LINE = 54,
OP_SET_NPC_POSITION = 54,
OP_NPC_PATH_LABEL = 55,
OP_PATH_GOTO_LABEL = 56,
OP_PATH_IF_FLAG_GOTO_LABEL = 57,
OP_NPC_WALK_GRAPHICS = 58,
OP_NPC_VERB = 59,
OP_NPC_VERB_CANIM = 60,
OP_NPC_VERB_SCRIPT = 61,
OP_RESTORE_PEOPLE_SEQUENCE = 62,
OP_NPC_VERB_TARGET = 63,
OP_TURN_SOUNDS_OFF = 64,
OP_NULL = 65
OP_WALK_NPC_TO_COORDS = 45,
OP_WALK_HOLMES_AND_NPC_TO_COORDS = 46,
OP_SET_NPC_TALK_FILE = 47,
OP_TURN_NPC_OFF = 48,
OP_TURN_NPC_ON = 49,
OP_NPC_DESC_ON_OFF = 50,
OP_NPC_PATH_PAUSE_TAKING_NOTES = 51,
OP_NPC_PATH_PAUSE_LOOKING_HOLMES = 52,
OP_ENABLE_TALK_INTERRUPTS = 53,
OP_DISABLE_TALK_INTERRUPTS = 54,
OP_SET_NPC_INFO_LINE = 55,
OP_SET_NPC_POSITION = 56,
OP_NPC_PATH_LABEL = 57,
OP_PATH_GOTO_LABEL = 58,
OP_PATH_IF_FLAG_GOTO_LABEL = 59,
OP_NPC_WALK_GRAPHICS = 60,
OP_NPC_VERB = 61,
OP_NPC_VERB_CANIM = 62,
OP_NPC_VERB_SCRIPT = 63,
OP_RESTORE_PEOPLE_SEQUENCE = 64,
OP_NPC_VERB_TARGET = 65,
OP_TURN_SOUNDS_OFF = 66,
OP_NULL = 67
};

enum OpcodeReturn { RET_EXIT = -1, RET_SUCCESS = 0, RET_CONTINUE = 1 };
Expand Down
1 change: 1 addition & 0 deletions engines/sherlock/tattoo/tattoo_talk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const byte TATTOO_OPCODES[] = {
197, // OP_PASSWORD
198, // OP_SET_SCENE_ENTRY_FLAG
185, // OP_WALK_NPC_TO_CANIM
186, // OP_WALK_NPC_TO_COORDS
204, // OP_WALK_HOLMES_AND_NPC_TO_COORDS
205, // OP_SET_NPC_TALK_FILE
206, // OP_TURN_NPC_OFF
Expand Down

0 comments on commit a066d27

Please sign in to comment.