[Scummvm-git-logs] scummvm master -> ac506478d9f52e6f43d780f358335433b08f2e2c
AndywinXp
noreply at scummvm.org
Sun Feb 26 14:11:04 UTC 2023
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:
ac506478d9 SCUMM: Fix string wrapping regression caused by Sega CD changes
Commit: ac506478d9f52e6f43d780f358335433b08f2e2c
https://github.com/scummvm/scummvm/commit/ac506478d9f52e6f43d780f358335433b08f2e2c
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-02-26T15:11:01+01:00
Commit Message:
SCUMM: Fix string wrapping regression caused by Sega CD changes
Changed paths:
engines/scumm/string.cpp
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index 2f909b540a2..fe1c89575f9 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -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);
}
}
More information about the Scummvm-git-logs
mailing list