aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/text.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-05-31 10:02:16 +0000
committerTorbjörn Andersson2009-05-31 10:02:16 +0000
commit0999534749f6c4edb9e4d054b95f185b829adba3 (patch)
tree55744aee72afd7cc699213a88be65938e70fa0a0 /engines/sky/text.cpp
parent3b311c65d0140e8bf727910d230ffd7a7f803761 (diff)
downloadscummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.tar.gz
scummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.tar.bz2
scummvm-rg350-0999534749f6c4edb9e4d054b95f185b829adba3.zip
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
Diffstat (limited to 'engines/sky/text.cpp')
-rw-r--r--engines/sky/text.cpp4
1 files changed, 2 insertions, 2 deletions
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;