aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorBLooperZ2019-08-17 22:28:21 +0300
committerEugene Sandulenko2020-01-01 00:31:21 +0100
commitf411135ef64fa08078ae6c963d03168d36335a2d (patch)
treedcfe8d21c79c7b53fec6437c42f2d90a5f3a96e4 /engines/scumm
parent9b2ee566e423eeab97e3fd6041e2ebd6e9d5e63a (diff)
downloadscummvm-rg350-f411135ef64fa08078ae6c963d03168d36335a2d.tar.gz
scummvm-rg350-f411135ef64fa08078ae6c963d03168d36335a2d.tar.bz2
scummvm-rg350-f411135ef64fa08078ae6c963d03168d36335a2d.zip
SCUMM: remove condition for aligning verb lines
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/string.cpp32
1 files changed, 14 insertions, 18 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 872cb8ea77..c418186004 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -1157,26 +1157,22 @@ void ScummEngine::drawString(int a, const byte *msg) {
if (_charset->_center) {
_charset->_left = _charset->_startLeft - _charset->getStringWidth(a, buf + i);
} else if (_game.version >= 4 && _game.version < 7 && (_language == Common::HE_ISR || true)) {
- if (_charset->getStringWidth(a, buf + i) > _screenWidth) {
- int ll = 0;
- byte* ltext = buf + i;
- while (ltext[ll] == 0xFF) {
- ll += 4;
- }
- byte lenbuf[270] = {0};
- memcpy(lenbuf, ltext, ll);
- int u = ll;
- while (ltext[u]) {
- if ((ltext[u] == 0xFF || (_game.version <= 6 && ltext[u] == 0xFE)) && ltext[u + 1] == 8) {
- break;
- }
- u++;
+ int ll = 0;
+ byte* ltext = buf + i;
+ while (ltext[ll] == 0xFF) {
+ ll += 4;
+ }
+ byte lenbuf[270] = {0};
+ memcpy(lenbuf, ltext, ll);
+ int u = ll;
+ while (ltext[u]) {
+ if ((ltext[u] == 0xFF || (_game.version <= 6 && ltext[u] == 0xFE)) && ltext[u + 1] == 8) {
+ break;
}
- memcpy(lenbuf, ltext, u);
- _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(a, lenbuf);
- } else {
- _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(a, buf + i);
+ u++;
}
+ memcpy(lenbuf, ltext, u);
+ _charset->_left = _screenWidth - _charset->_startLeft - _charset->getStringWidth(a, lenbuf);
} else {
_charset->_left = _charset->_startLeft;
}