aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/xeen/dialogs/dialogs_input.cpp11
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;