[Scummvm-git-logs] scummvm master -> 1173344918eb7330b3010bb0ea7f872446df0b16
dreammaster
paulfgilbert at gmail.com
Mon Aug 19 05:28:31 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1173344918 XEEN: Workaround for incorrect vowelless knights riddle answer
Commit: 1173344918eb7330b3010bb0ea7f872446df0b16
https://github.com/scummvm/scummvm/commit/1173344918eb7330b3010bb0ea7f872446df0b16
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-08-18T20:28:23-07:00
Commit Message:
XEEN: Workaround for incorrect vowelless knights riddle answer
Changed paths:
engines/xeen/dialogs/dialogs_input.cpp
diff --git a/engines/xeen/dialogs/dialogs_input.cpp b/engines/xeen/dialogs/dialogs_input.cpp
index b72e47e..8c8afc0 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;
More information about the Scummvm-git-logs
mailing list