[Scummvm-cvs-logs] CVS: scummvm/sky text.cpp,1.36,1.37
Robert G?ffringmann
lavosspawn at users.sourceforge.net
Fri Jun 27 05:53:14 CEST 2003
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv5854/sky
Modified Files:
text.cpp
Log Message:
fixed text decoding bug
Index: text.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/text.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- text.cpp 14 Jun 2003 11:48:09 -0000 1.36
+++ text.cpp 27 Jun 2003 12:11:50 -0000 1.37
@@ -107,13 +107,12 @@
}
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];
More information about the Scummvm-git-logs
mailing list