SCUMM: Fix string wrapping regression caused by Sega CD changes

This commit is contained in:
AndywinXp 2023-02-26 15:11:01 +01:00
parent 327b35407f
commit ac506478d9

View File

@ -971,7 +971,8 @@ void ScummEngine::CHARSET_1() {
// If the string is centered and this is MI1 Sega CD, don't add linebreaks right away;
// we will take care of it in a different way just below ... :-)
if (_game.platform != Common::kPlatformSegaCD && !_charset->_center) {
if (_game.platform != Common::kPlatformSegaCD ||
(_game.platform != Common::kPlatformSegaCD && !_charset->_center)) {
_charset->addLinebreaks(0, _charsetBuffer + _charsetBufPos, 0, maxWidth);
}
}