aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/string.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 75b31e8ffd..7d238859c7 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -34,6 +34,11 @@ void Scumm::unkMessage1()
_msgPtrToAdd = buffer;
_messagePtr = addMessageToStack(_messagePtr);
+ if ((_gameId == GID_CMI) && _debugMode) { // In CMI, unkMessage1 is used for printDebug output
+ warning("%s", buffer);
+ return;
+ }
+
if (buffer[0] == 0xFF && buffer[1] == 10) {
uint32 a, b;
@@ -46,7 +51,7 @@ void Scumm::unkMessage1()
// mentioned in the patch. FIXME after iMUSE is done.
if (_gameId != GID_SAMNMAX || (_vars[VAR_V6_SOUNDMODE] != 2))
_sound->talkSound(a, b, 1, -1);
- }
+ }
}
void Scumm::unkMessage2()