aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-05 21:26:04 +0100
committerAdrian Frühwirth2018-03-05 21:32:56 +0100
commitada79c7f65264a073a2f7ae55ec23211a924a1e6 (patch)
tree32dd11e999b8bbca2a21e5483ba638beb248d400 /engines/tucker
parent585fc91de5c1fcfc0e51afc9d13bc5736b38edad (diff)
downloadscummvm-rg350-ada79c7f65264a073a2f7ae55ec23211a924a1e6.tar.gz
scummvm-rg350-ada79c7f65264a073a2f7ae55ec23211a924a1e6.tar.bz2
scummvm-rg350-ada79c7f65264a073a2f7ae55ec23211a924a1e6.zip
TUCKER: Workaround capitalized "With"/"Con" in sentence bar
infobar.txt contains all text used for the sentence bar and, among other things, the prepositions to use for the "Use" and "Give" verbs. In the English and Spanish versions of the game the preposition for "Use" ("With" and "Con", respectively) is incorrectly stored in capitalized form which this commit fixes. Fixes Trac#10445.
Diffstat (limited to 'engines/tucker')
-rw-r--r--engines/tucker/tucker.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index f7afd16906..11ff5a4cc5 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -364,7 +364,16 @@ void TuckerEngine::mainLoop() {
}
loadCharset();
loadPanel();
+
loadFile("infobar.txt", _infoBarBuf);
+ // WORKAROUND capitalized "With"/"Con" in the English/Spanish versions
+ // Fixes Trac#10445.
+ if (_gameLang == Common::EN_ANY) {
+ _infoBarBuf[getPositionForLine(kVerbPrepositionWith, _infoBarBuf)] = 'w';
+ } else if (_gameLang == Common::ES_ESP) {
+ _infoBarBuf[getPositionForLine(kVerbPrepositionWith, _infoBarBuf)] = 'c';
+ }
+
_data5Buf = loadFile("data5.c", 0);
_bgTextBuf = loadFile("bgtext.c", 0);
_charNameBuf = loadFile("charname.c", 0);