Skip to content

Commit

Permalink
SCI: Add special check for Russian versions of the games
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 14, 2019
1 parent 9263a0f commit e00b206
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engines/sci/engine/message.cpp
Expand Up @@ -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)))
Expand Down

0 comments on commit e00b206

Please sign in to comment.