diff options
author | Max Horn | 2004-08-14 16:30:39 +0000 |
---|---|---|
committer | Max Horn | 2004-08-14 16:30:39 +0000 |
commit | 90521f836f1f46be025b80800430ee2f020f62ec (patch) | |
tree | 968e47c16636567eee9f41c7ac8b0d18f203d05b | |
parent | 171fac3895ccc4b91ec8e5be6880847a26696390 (diff) | |
download | scummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.tar.gz scummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.tar.bz2 scummvm-rg350-90521f836f1f46be025b80800430ee2f020f62ec.zip |
cleanup
svn-id: r14609
-rw-r--r-- | scumm/scumm.h | 2 | ||||
-rw-r--r-- | scumm/string.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index 9ed637b04b..e23c1121e8 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -986,7 +986,7 @@ protected: public: int _screenStartStrip, _screenEndStrip; - int _screenTop; + int _screenTop; protected: int _blastObjectQueuePos; 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]; |