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.
This commit is contained in:
Adrian Frühwirth 2018-03-05 21:26:04 +01:00
parent 585fc91de5
commit ada79c7f65

View File

@ -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);