diff options
author | Paul Gilbert | 2019-08-18 20:28:23 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-18 20:28:23 -0700 |
commit | 1173344918eb7330b3010bb0ea7f872446df0b16 (patch) | |
tree | 68060049b4fe0c849337a73a2bbe96fca47395c5 /engines/xeen | |
parent | b39ab39d446dbf73d672a95992f4c40057c5020d (diff) | |
download | scummvm-rg350-1173344918eb7330b3010bb0ea7f872446df0b16.tar.gz scummvm-rg350-1173344918eb7330b3010bb0ea7f872446df0b16.tar.bz2 scummvm-rg350-1173344918eb7330b3010bb0ea7f872446df0b16.zip |
XEEN: Workaround for incorrect vowelless knights riddle answer
Diffstat (limited to 'engines/xeen')
-rw-r--r-- | engines/xeen/dialogs/dialogs_input.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/xeen/dialogs/dialogs_input.cpp b/engines/xeen/dialogs/dialogs_input.cpp index b72e47e37a..8c8afc0333 100644 --- a/engines/xeen/dialogs/dialogs_input.cpp +++ b/engines/xeen/dialogs/dialogs_input.cpp @@ -154,7 +154,16 @@ int StringInput::execute(bool type, const Common::String &expected, Common::String line; if (getString(line, 30, 200, false)) { if (type) { - if (!line.compareToIgnoreCase(scripts._message)) { + // WORKAROUND: Fix for incorrect answer for one of the Vowelless Knight riddles + line.toLowercase(); + if (line == "iieeeoeeeouie") + line = "iieeeoeeaouie"; + Common::String scriptsMsg = scripts._message; + scriptsMsg.toLowercase(); + if (scriptsMsg == "iieeeoeeeouie") + scriptsMsg = "iieeeoeeaouie"; + + if (line == scriptsMsg) { result = true; } else if (!line.compareToIgnoreCase(expected)) { result = (opcode == 55) ? -1 : 1; |