[Scummvm-git-logs] scummvm master -> edb3fdfca5088e79f9ee0cfe93fa1f3a5eefb8ce

orgads noreply at scummvm.org
Mon Jul 25 19:24:53 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
edb3fdfca5 SCUMM: Fix RTL indentation for charset 4 on Monkey Island 2


Commit: edb3fdfca5088e79f9ee0cfe93fa1f3a5eefb8ce
    https://github.com/scummvm/scummvm/commit/edb3fdfca5088e79f9ee0cfe93fa1f3a5eefb8ce
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2022-07-25T22:24:39+03:00

Commit Message:
SCUMM: Fix RTL indentation for charset 4 on Monkey Island 2

Changed paths:
    engines/scumm/string.cpp


diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index eedc7879370..0080dc0e33f 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -539,7 +539,7 @@ bool ScummEngine::newLine() {
 			// the original code it seems that setting _nextLeft to 0 is the right thing to do here.
 			_nextLeft = /*_game.version >= 6 ? _string[0].xpos :*/ 0;
 	} else if (_isRTL) {
-		if (_game.id == GID_MANIAC || (_game.id == GID_MONKEY && _charset->getCurID() == 4)) {
+		if (_game.id == GID_MANIAC || ((_game.id == GID_MONKEY || _game.id == GID_MONKEY2) && _charset->getCurID() == 4)) {
 			_nextLeft = _screenWidth - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos) - _nextLeft;
 		}
 	}
@@ -786,7 +786,7 @@ void ScummEngine::CHARSET_1() {
 		if (_nextLeft < 0)
 			_nextLeft = _game.version >= 6 ? _string[0].xpos : 0;
 	} else if (_isRTL) {
-		if (_game.id == GID_MANIAC || (_game.id == GID_MONKEY && _charset->getCurID() == 4)) {
+		if (_game.id == GID_MANIAC || ((_game.id == GID_MONKEY || _game.id == GID_MONKEY2) && _charset->getCurID() == 4)) {
 			_nextLeft = _screenWidth - _charset->getStringWidth(0, _charsetBuffer + _charsetBufPos) - _nextLeft;
 		}
 	}




More information about the Scummvm-git-logs mailing list