diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/talk.cpp | 10 | ||||
-rw-r--r-- | engines/sherlock/talk.h | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 60e7dc43b9..af80dae519 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -766,7 +766,6 @@ void Talk::doScript(const Common::String &script) { // in case more invalid characters exist. // More information see bug #6931 // - //} else if (isPossibleOpcode(c)) { // Handle control code switch ((this->*_opcodeTable[c - _opcodes[0]])(str)) { @@ -929,15 +928,6 @@ bool Talk::isOpcode(byte checkCharacter) { return false; } -bool Talk::isPossibleOpcode(byte checkCharacter) { - // Some conversations in the Spanish version, such as the first conversation with Lastrade, - // start with an invalid character. Hence isPossibleOpcode being separate from isOpcode - if (IS_SERRATED_SCALPEL && _vm->getLanguage() == Common::ES_ESP) - return checkCharacter >= 128; - - return isOpcode(checkCharacter); -} - void Talk::popStack() { if (!_scriptStack.empty()) { ScriptStackEntry scriptEntry = _scriptStack.pop(); diff --git a/engines/sherlock/talk.h b/engines/sherlock/talk.h index a0845efb2c..2c0da24d69 100644 --- a/engines/sherlock/talk.h +++ b/engines/sherlock/talk.h @@ -218,11 +218,6 @@ protected: * Checks if a character is an opcode */ bool isOpcode(byte checkCharacter); - - /** - * Checks if a character might be an opcode - */ - bool isPossibleOpcode(byte checkCharacter); /** * Form a table of the display indexes for statements |