missed this in last commit (bug fix for #1997149)

svn-id: r32753
This commit is contained in:
Florian Kagerer 2008-06-22 12:41:46 +00:00
parent 5c8a93b486
commit 6360c392f2

View File

@ -800,9 +800,15 @@ int KyraEngine_HoF::o2_showLetter(EMCState *script) {
_screen->fadeToBlack(0x14);
sprintf(filename, "LETTER%.1d.", letter);
strcat(filename, (_flags.isTalkie || _flags.platform == Common::kPlatformFMTowns || _lang) ? _languageExtension[_lang] : "TXT");
strcat(filename, _languageExtension[_lang]);
uint8 *letterBuffer = _res->fileData(filename, 0);
if (!letterBuffer) {
// some floppy versions use a TXT extension
sprintf(filename, "LETTER%.1d.", letter);
strcat(filename, "TXT");
letterBuffer = _res->fileData(filename, 0);
}
if (letterBuffer) {
bookDecodeText(letterBuffer);
bookPrintText(2, letterBuffer, 0xC, 0xA, 0x20);