KYRA: HOF: fix hebrew multiword object action str

This commit is contained in:
BLooperZ 2021-10-04 20:19:56 +03:00 committed by athrxx
parent 5006b1a50c
commit 77a78904e5

View File

@ -872,7 +872,7 @@ void KyraEngine_HoF::showChapterMessage(int id, int16 palIndex) {
void KyraEngine_HoF::updateCommandLineEx(int str1, int str2, int16 palIndex) {
Common::String str = getTableString(str1, _cCodeBuffer, true);
if (_flags.lang != Common::JA_JPN) {
if (_flags.lang != Common::JA_JPN && _flags.lang != Common::HE_ISR) {
if (uint32 i = (uint32)str.findFirstOf(' ') + 1) {
str.erase(0, i);
str.setChar(toupper(str[0]), 0);
@ -880,9 +880,12 @@ void KyraEngine_HoF::updateCommandLineEx(int str1, int str2, int16 palIndex) {
}
if (str2 > 0) {
if (_flags.lang != Common::JA_JPN)
if (_flags.lang != Common::JA_JPN && _flags.lang != Common::HE_ISR)
str += " ";
str += getTableString(str2, _cCodeBuffer, 1);
if (_flags.lang != Common::HE_ISR)
str += getTableString(str2, _cCodeBuffer, 1);
else
str = getTableString(str2, _cCodeBuffer, 1) + " " + str + ".";
}
showMessage(str, palIndex);