From 0999534749f6c4edb9e4d054b95f185b829adba3 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 31 May 2009 10:02:16 +0000 Subject: The error() and warning() functions add ! and newline automatically. (I didn't look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061 --- engines/scumm/string.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/scumm/string.cpp') diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp index 2aaedf5667..77fad53425 100644 --- a/engines/scumm/string.cpp +++ b/engines/scumm/string.cpp @@ -1095,7 +1095,7 @@ int ScummEngine::convertMessageToString(const byte *msg, byte *dst, int dstSize) // Check for a buffer overflow if (dst >= end) - error("convertMessageToString: buffer overflow!"); + error("convertMessageToString: buffer overflow"); } *dst = 0; @@ -1144,7 +1144,7 @@ int ScummEngine_v72he::convertMessageToString(const byte *msg, byte *dst, int ds // Check for a buffer overflow if (dst >= end) - error("convertMessageToString: buffer overflow!"); + error("convertMessageToString: buffer overflow"); } *dst = 0; @@ -1362,7 +1362,7 @@ void ScummEngine_v7::loadLanguageBundle() { // That was another index entry _languageIndexSize++; } else { - error("Unknown language.bnd entry found: '%s'\n", ptr); + error("Unknown language.bnd entry found: '%s'", ptr); } // Skip over newlines (and turn them into null bytes) -- cgit v1.2.3