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/sky/text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sky/text.cpp') diff --git a/engines/sky/text.cpp b/engines/sky/text.cpp index 820f1827c2..497c8a1ba3 100644 --- a/engines/sky/text.cpp +++ b/engines/sky/text.cpp @@ -279,7 +279,7 @@ DisplayedText Text::displayText(char *textPtr, uint8 *dest, bool centre, uint16 if (pixelWidth <= lineWidth) { if (*(lastSpace-1) == 10) - error("line width exceeded!"); + error("line width exceeded"); *(lastSpace-1) = 10; lineWidth = 0; @@ -296,7 +296,7 @@ DisplayedText Text::displayText(char *textPtr, uint8 *dest, bool centre, uint16 numLines++; if (numLines > MAX_NO_LINES) - error("Maximum no. of lines exceeded!"); + error("Maximum no. of lines exceeded"); uint32 dtLineSize = pixelWidth * _charHeight; uint32 numBytes = (dtLineSize * numLines) + sizeof(DataFileHeader) + 4; -- cgit v1.2.3