aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanasis Antoniou2019-02-24 19:58:44 +0200
committerThanasis Antoniou2019-02-24 19:58:44 +0200
commit3730a549e0ea48d9b0a29d1989ac84dcbe177ddd (patch)
tree2762c16a9123164d8b6338e83ec13a609a03c2b0
parentad648f8a972cbd2ac61d594c6f0d2f6981bb84d3 (diff)
downloadscummvm-rg350-3730a549e0ea48d9b0a29d1989ac84dcbe177ddd.tar.gz
scummvm-rg350-3730a549e0ea48d9b0a29d1989ac84dcbe177ddd.tar.bz2
scummvm-rg350-3730a549e0ea48d9b0a29d1989ac84dcbe177ddd.zip
BLADERUNNER: Fix incorrect spelling of JEWELRY
Entry 1020 for dialogue menu in English version is replaced "DRAGONFLY JEWERLY" becomes "DRAGONFLY JEWELRY"
-rw-r--r--engines/bladerunner/dialogue_menu.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/bladerunner/dialogue_menu.cpp b/engines/bladerunner/dialogue_menu.cpp
index 61f400cc26..797c0a739b 100644
--- a/engines/bladerunner/dialogue_menu.cpp
+++ b/engines/bladerunner/dialogue_menu.cpp
@@ -113,7 +113,17 @@ bool DialogueMenu::addToList(int answer, bool done, int priorityPolite, int prio
return false;
}
+#if BLADERUNNER_ORIGINAL_BUGS
+// Original uses incorrect spelling for entry id 1020: DRAGONFLY JEWERLY
const Common::String &text = _textResource->getText(answer);
+#else
+// fix spelling or entry id 1020 to DRAGONFLY JEWELRY in English version
+ const char *answerTextCP = _textResource->getText(answer);
+ if (_vm->_languageCode == "E" && answer == 1020) {
+ answerTextCP = "DRAGONFLY JEWELRY";
+ }
+ const Common::String &text = answerTextCP;
+#endif // BLADERUNNER_ORIGINAL_BUGS
if (text.empty() || text.size() >= 50) {
return false;
}