[Scummvm-git-logs] scummvm master -> 2cb179743d21906ba01507562c673ff16e7fd5ee
sluicebox
noreply at scummvm.org
Wed Sep 17 16:50:44 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
2cb179743d AGI: Remove redundant check in RTL code
Commit: 2cb179743d21906ba01507562c673ff16e7fd5ee
https://github.com/scummvm/scummvm/commit/2cb179743d21906ba01507562c673ff16e7fd5ee
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-09-17T09:49:04-07:00
Commit Message:
AGI: Remove redundant check in RTL code
CID 1621623
Changed paths:
engines/agi/text.cpp
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 3d102fbfc94..91ed1546350 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -247,7 +247,7 @@ void TextMgr::display(int16 textNr, int16 textRow, int16 textColumn) {
if (textNr >= 1 && textNr <= _vm->_game._curLogic->numTexts) {
logicTextPtr = _vm->_game._curLogic->texts[textNr - 1];
// For RTL languages, adjust the cursor position to right-align text
- if (_vm->isLanguageRTL() && logicTextPtr) {
+ if (_vm->isLanguageRTL()) {
int textLength = strlen(logicTextPtr);
textColumn = MAX < int16>(0, 40 - textColumn - textLength);
charPos_Set(textRow, textColumn);
More information about the Scummvm-git-logs
mailing list