aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2004-08-14 16:30:39 +0000
committerMax Horn2004-08-14 16:30:39 +0000
commit90521f836f1f46be025b80800430ee2f020f62ec (patch)
tree968e47c16636567eee9f41c7ac8b0d18f203d05b /scumm/string.cpp
parent171fac3895ccc4b91ec8e5be6880847a26696390 (diff)
downloadscummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.tar.gz
scummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.tar.bz2
scummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.zip
cleanup
svn-id: r14609
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 02a88b148f..9675e23007 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -110,8 +110,9 @@ void ScummEngine::CHARSET_1() {
s = a->scaley * a->talkPosY / 0xFF;
_string[0].ypos = ((a->talkPosY - s) / 2) + s - a->getElevation() + a->_pos.y;
- if (_string[0].ypos < _screenTop)
+ if (_string[0].ypos < _screenTop) {
_string[0].ypos = _screenTop;
+ }
s = a->scalex * a->talkPosX / 0xFF;
_string[0].xpos = ((a->talkPosX - s) / 2) + s + a->_pos.x - camera._cur.x + (_screenWidth / 2);
@@ -128,16 +129,15 @@ void ScummEngine::CHARSET_1() {
_charset->_top = _string[0].ypos + _screenTop;
_charset->_startLeft = _charset->_left = _string[0].xpos;
+ _charset->_right = _string[0].right;
+ _charset->_center = _string[0].center;
+ _charset->setColor(_charsetColor);
if (a && a->charset)
_charset->setCurID(a->charset);
else
_charset->setCurID(_string[0].charset);
- _charset->_center = _string[0].center;
- _charset->_right = _string[0].right;
- _charset->setColor(_charsetColor);
-
if (_version >= 5)
for (i = 0; i < 4; i++)
_charsetColorMap[i] = _charsetData[_charset->getCurID()][i];