diff options
author | Eugene Sandulenko | 2019-09-14 16:13:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-14 16:13:11 +0200 |
commit | e00b2064a5d789a2e6a61da28d0474298c436727 (patch) | |
tree | db64abe07d5f8249553c03ac2926a5ae252424ea /engines/sci/engine | |
parent | 9263a0f234afb1918e5f3390fc3903ea8844d214 (diff) | |
download | scummvm-rg350-e00b2064a5d789a2e6a61da28d0474298c436727.tar.gz scummvm-rg350-e00b2064a5d789a2e6a61da28d0474298c436727.tar.bz2 scummvm-rg350-e00b2064a5d789a2e6a61da28d0474298c436727.zip |
SCI: Add special check for Russian versions of the games
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/message.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/engine/message.cpp b/engines/sci/engine/message.cpp index 6af207add7..2e69e9340f 100644 --- a/engines/sci/engine/message.cpp +++ b/engines/sci/engine/message.cpp @@ -436,6 +436,12 @@ bool MessageState::stringStage(Common::String &outstr, const Common::String &inS return true; } + // For Russian we allow all upper characters + if (g_sci->getLanguage() == Common::RU_RUS) { + if ((inStr[i] >= 'a') || ((inStr[i] >= '0') && (inStr[i] <= '9') && (getSciVersion() < SCI_VERSION_2))) + return false; + } + // If we find a lowercase character or a digit, it's not a stage direction // SCI32 seems to support having digits in stage directions if (((inStr[i] >= 'a') && (inStr[i] <= 'z')) || ((inStr[i] >= '0') && (inStr[i] <= '9') && (getSciVersion() < SCI_VERSION_2))) |