[Scummvm-git-logs] scummvm master -> 902b2278a57c801c78d7edaa99db9df0f6c00a49
antoniou79
antoniou at cti.gr
Sun Feb 24 19:16:31 CET 2019
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
3730a549e0 BLADERUNNER: Fix incorrect spelling of JEWELRY
902b2278a5 BLADERUNNER: Impovement on spell correction of JEWELRY
Commit: 3730a549e0ea48d9b0a29d1989ac84dcbe177ddd
https://github.com/scummvm/scummvm/commit/3730a549e0ea48d9b0a29d1989ac84dcbe177ddd
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-02-24T19:58:44+02:00
Commit Message:
BLADERUNNER: Fix incorrect spelling of JEWELRY
Entry 1020 for dialogue menu in English version is replaced
"DRAGONFLY JEWERLY" becomes "DRAGONFLY JEWELRY"
Changed paths:
engines/bladerunner/dialogue_menu.cpp
diff --git a/engines/bladerunner/dialogue_menu.cpp b/engines/bladerunner/dialogue_menu.cpp
index 61f400c..797c0a7 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;
}
Commit: 902b2278a57c801c78d7edaa99db9df0f6c00a49
https://github.com/scummvm/scummvm/commit/902b2278a57c801c78d7edaa99db9df0f6c00a49
Author: Thanasis Antoniou (a.antoniou79 at gmail.com)
Date: 2019-02-24T20:14:07+02:00
Commit Message:
BLADERUNNER: Impovement on spell correction of JEWELRY
Improvement allows text override which is good for translation support
Changed paths:
engines/bladerunner/dialogue_menu.cpp
diff --git a/engines/bladerunner/dialogue_menu.cpp b/engines/bladerunner/dialogue_menu.cpp
index 797c0a7..3811471 100644
--- a/engines/bladerunner/dialogue_menu.cpp
+++ b/engines/bladerunner/dialogue_menu.cpp
@@ -119,7 +119,7 @@ bool DialogueMenu::addToList(int answer, bool done, int priorityPolite, int prio
#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) {
+ if (_vm->_languageCode == "E" && answer == 1020 && strcmp(answerTextCP, "DRAGONFLY JEWERLY") == 0) {
answerTextCP = "DRAGONFLY JEWELRY";
}
const Common::String &text = answerTextCP;
More information about the Scummvm-git-logs
mailing list