diff options
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r-- | scumm/string.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index a184ca8abf..bdd30a0136 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -48,7 +48,7 @@ void ScummEngine::setStringVars(int slot) { void ScummEngine::unkMessage1(const byte *msg) { byte buffer[100]; - _messagePtr = addMessageToStack(msg, buffer, sizeof(buffer)); + addMessageToStack(msg, buffer, sizeof(buffer)); // if ((_gameId == GID_CMI) && _debugMode) { // In CMI, unkMessage1 is used for printDebug output if ((buffer[0] != 0xFF) && _debugMode) { @@ -75,17 +75,14 @@ void ScummEngine::unkMessage2(const byte *msg) { // Original COMI used different code at this point. // Seemed to use blastText for the messages byte buf[100]; - const byte *tmp; - tmp = _messagePtr = addMessageToStack(msg, buf, sizeof(buf)); + addMessageToStack(msg, buf, sizeof(buf)); if (_string[3].color == 0) _string[3].color = 4; InfoDialog dialog(this, (char*)buf); VAR(VAR_KEYPRESS) = runDialog(dialog); - - _messagePtr = tmp; } void ScummEngine::CHARSET_1() { @@ -346,7 +343,7 @@ void ScummEngine::drawString(int a, const byte *msg) { byte fontHeight = 0; uint color; - _messagePtr = addMessageToStack(msg, buf, sizeof(buf)); + addMessageToStack(msg, buf, sizeof(buf)); _charset->_top = _string[a].ypos + _screenTop; _charset->_startLeft = _charset->_left = _string[a].xpos; |