diff options
author | Johannes Schickel | 2008-06-22 12:36:38 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-06-22 12:36:38 +0000 |
commit | 12d7a5e679683f537d35075a5f67e57817621102 (patch) | |
tree | 6803932c91129c04c8f6e36cf59311552bcbacdc | |
parent | 3be9449e6730ec296091e7caaf5dd8f277d95bc9 (diff) | |
download | scummvm-rg350-12d7a5e679683f537d35075a5f67e57817621102.tar.gz scummvm-rg350-12d7a5e679683f537d35075a5f67e57817621102.tar.bz2 scummvm-rg350-12d7a5e679683f537d35075a5f67e57817621102.zip |
Cleanup.
svn-id: r32751
-rw-r--r-- | engines/kyra/gui_hof.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/kyra/gui_hof.cpp b/engines/kyra/gui_hof.cpp index e94f88a1d2..7d56743af5 100644 --- a/engines/kyra/gui_hof.cpp +++ b/engines/kyra/gui_hof.cpp @@ -454,26 +454,22 @@ void KyraEngine_HoF::loadBookBkgd() { void KyraEngine_HoF::showBookPage() { char filename[16]; - sprintf(filename, "PAGE%.01X.", _bookCurPage); - strcat(filename, _languageExtension[_lang]); + sprintf(filename, "PAGE%.01X.%s", _bookCurPage, _languageExtension[_lang]); uint8 *leftPage = _res->fileData(filename, 0); if (!leftPage) { // some floppy version use a TXT extension - sprintf(filename, "PAGE%.01X.", _bookCurPage); - strcat(filename, "TXT"); + sprintf(filename, "PAGE%.01X.TXT", _bookCurPage); leftPage = _res->fileData(filename, 0); } int leftPageY = _bookPageYOffset[_bookCurPage]; - sprintf(filename, "PAGE%.01X.", _bookCurPage+1); - strcat(filename, _languageExtension[_lang]); + sprintf(filename, "PAGE%.01X.%s", _bookCurPage+1, _languageExtension[_lang]); uint8 *rightPage = 0; if (_bookCurPage != _bookMaxPage) { rightPage = _res->fileData(filename, 0); if (!rightPage) { - sprintf(filename, "PAGE%.01X.", _bookCurPage); - strcat(filename, "TXT"); + sprintf(filename, "PAGE%.01X.TXT", _bookCurPage); rightPage = _res->fileData(filename, 0); } } |