From ada79c7f65264a073a2f7ae55ec23211a924a1e6 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Mon, 5 Mar 2018 21:26:04 +0100 Subject: 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. --- engines/tucker/tucker.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/tucker') 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); -- cgit v1.2.3