Skip to content

Commit

Permalink
XEEN: Workaround for incorrect vowelless knights riddle answer
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 19, 2019
1 parent b39ab39 commit 1173344
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion engines/xeen/dialogs/dialogs_input.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 1173344

Please sign in to comment.