aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-11-04 23:52:01 +0000
committerTravis Howell2005-11-04 23:52:01 +0000
commit3dc93027fbff2ff6663451bdc49e13d47fee25ab (patch)
tree9a78e857f99b154fd1306ec23bee722ad01a392c /scumm
parent32992c56451fda923e17f185d0f486f25884c9c0 (diff)
downloadscummvm-rg350-3dc93027fbff2ff6663451bdc49e13d47fee25ab.tar.gz
scummvm-rg350-3dc93027fbff2ff6663451bdc49e13d47fee25ab.tar.bz2
scummvm-rg350-3dc93027fbff2ff6663451bdc49e13d47fee25ab.zip
Add missing case for HE games.
Fix regression in HE games I caused. svn-id: r19429
Diffstat (limited to 'scumm')
-rw-r--r--scumm/charset.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/charset.cpp b/scumm/charset.cpp
index abc617204c..0cb3310f41 100644
--- a/scumm/charset.cpp
+++ b/scumm/charset.cpp
@@ -298,10 +298,12 @@ int CharsetRenderer::getStringWidth(int arg, const byte *text) {
int code = (_vm->_heversion >= 80) ? 127 : 64;
while ((chr = text[pos++]) != 0) {
+ if (chr == '\n' || chr == '\r')
+ break;
if (_vm->_heversion >= 72) {
if (chr == code) {
chr = text[pos++];
- if (chr == 84) { // Strings of speech offset/size
+ if (chr == 84 || chr == 116) { // Strings of speech offset/size
while (chr != code)
chr = text[pos++];
continue;
@@ -314,8 +316,6 @@ int CharsetRenderer::getStringWidth(int arg, const byte *text) {
} else {
if (chr == '@')
continue;
- if (chr == '\n' || chr == '\r')
- break;
if (chr == 255 || (_vm->_version <= 6 && chr == 254)) {
chr = text[pos++];
if (chr == 3) // 'WAIT'
@@ -365,7 +365,7 @@ void CharsetRenderer::addLinebreaks(int a, byte *str, int pos, int maxwidth) {
if (_vm->_heversion >= 72) {
if (chr == code) {
chr = str[pos++];
- if (chr == 84) { // Strings of speech offset/size
+ if (chr == 84 || chr == 116) { // Strings of speech offset/size
while (chr != code)
chr = str[pos++];
continue;