diff options
author | Paul Gilbert | 2016-07-24 07:45:30 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-24 07:45:30 -0400 |
commit | fd316a60589f07ac75cfdf1b56188d9d464336bd (patch) | |
tree | 121938b97ee70db270755d721fadc6aa1c6a2db0 /engines/titanic/support | |
parent | f1344c2c277125e652092b94a0a5347f842c45d0 (diff) | |
download | scummvm-rg350-fd316a60589f07ac75cfdf1b56188d9d464336bd.tar.gz scummvm-rg350-fd316a60589f07ac75cfdf1b56188d9d464336bd.tar.bz2 scummvm-rg350-fd316a60589f07ac75cfdf1b56188d9d464336bd.zip |
TITANIC: Fleshed out various methods
Diffstat (limited to 'engines/titanic/support')
-rw-r--r-- | engines/titanic/support/credit_text.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/titanic/support/credit_text.cpp b/engines/titanic/support/credit_text.cpp index 1f12341e71..0e9715aaa6 100644 --- a/engines/titanic/support/credit_text.cpp +++ b/engines/titanic/support/credit_text.cpp @@ -78,7 +78,7 @@ void CCreditText::setup() { if (srcLine.empty()) break; - CCreditLine *line = new CCreditLine(srcLine, + line = new CCreditLine(srcLine, _screenManagerP->stringWidth(srcLine)); group->_lines.push_back(line); @@ -107,9 +107,8 @@ CString CCreditText::readLine(Common::SeekableReadStream *stream) { } if (c == '\r') { - c = stream->readByte(); - if (c != '\n') - stream->skip(-1); + // Read following '\n' + stream->readByte(); } return line; |