aboutsummaryrefslogtreecommitdiff
path: root/scumm/charset.cpp
diff options
context:
space:
mode:
authorMax Horn2005-06-17 20:23:12 +0000
committerMax Horn2005-06-17 20:23:12 +0000
commitb03de44db456d6ea4c578a3b6c8c423e41cda0d7 (patch)
tree61b59df96fce107188fee6f7003e35d187714a8d /scumm/charset.cpp
parente3b40b5c24b676ed67c39891dff2b41ee9300f98 (diff)
downloadscummvm-rg350-b03de44db456d6ea4c578a3b6c8c423e41cda0d7.tar.gz
scummvm-rg350-b03de44db456d6ea4c578a3b6c8c423e41cda0d7.tar.bz2
scummvm-rg350-b03de44db456d6ea4c578a3b6c8c423e41cda0d7.zip
Handle newlines in blast text (fixes last remaining part of bug #902415)
svn-id: r18408
Diffstat (limited to 'scumm/charset.cpp')
-rw-r--r--scumm/charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index da909900a4..8ff53a2b51 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -311,7 +311,7 @@ int CharsetRenderer::getStringWidth(int arg, const byte *text) {
break;
} else if (chr == '@')
continue;
- if (chr == 0xD)
+ if (chr == '\n' || chr == '\r')
break;
if (chr == 254 || chr == 255) {
//process in LE