diff options
author | Robert Göffringmann | 2003-06-27 12:11:50 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-06-27 12:11:50 +0000 |
commit | ca0ebf3aef1ecdac8124a88eff1529416d3fda54 (patch) | |
tree | 2dcf25f4593b95c66093b4c3a62c288bf34022ad /sky | |
parent | 91cf11e99cc7b194fc39d1e6f6a85063ee61e77b (diff) | |
download | scummvm-rg350-ca0ebf3aef1ecdac8124a88eff1529416d3fda54.tar.gz scummvm-rg350-ca0ebf3aef1ecdac8124a88eff1529416d3fda54.tar.bz2 scummvm-rg350-ca0ebf3aef1ecdac8124a88eff1529416d3fda54.zip |
fixed text decoding bug
svn-id: r8668
Diffstat (limited to 'sky')
-rw-r--r-- | sky/text.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sky/text.cpp b/sky/text.cpp index cfb4c0f209..6d834a756f 100644 --- a/sky/text.cpp +++ b/sky/text.cpp @@ -107,13 +107,12 @@ void SkyText::fnTextModule(uint32 textInfoId, uint32 textNo) { } void SkyText::getText(uint32 textNr) { //load text #"textNr" into textBuffer - uint32 sectionNo = (textNr & 0x0F000) >> 10; + uint32 sectionNo = (textNr & 0x0F000) >> 12; if (SkyState::_itemList[FIRST_TEXT_SEC + sectionNo] == (void **)NULL) { //check if already loaded debug(5, "Loading Text item(s) for Section %d", (sectionNo>>2)); - uint32 fileNo = (sectionNo >> 2); - fileNo += ((SkyState::_systemVars.language * NO_OF_TEXT_SECTIONS) + 60600); + uint32 fileNo = sectionNo + ((SkyState::_systemVars.language * NO_OF_TEXT_SECTIONS) + 60600); SkyState::_itemList[FIRST_TEXT_SEC + sectionNo] = (void **)_skyDisk->loadFile((uint16)fileNo, NULL); } _textItemPtr = (uint8 *)SkyState::_itemList[FIRST_TEXT_SEC + sectionNo]; |