make zak use correct charset

svn-id: r6945
This commit is contained in:
Jonathan Gray 2003-04-09 08:06:55 +00:00
parent 5a29b639ff
commit 13ca8ea76c
2 changed files with 7 additions and 5 deletions

View file

@ -184,8 +184,11 @@ void Scumm_v3::loadCharset(int no) {
File file; File file;
char buf[20]; char buf[20];
sprintf(buf, "%02d.LFL", 99 - no); if (_gameId == GID_ZAK256)
// sprintf(buf, "%02d.LFL", 98 + no); sprintf(buf, "%02d.LFL", 98 + no);
else
sprintf(buf, "%02d.LFL", 99 - no);
file.open(buf, _gameDataPath); file.open(buf, _gameDataPath);
if (file.isOpen() == false) { if (file.isOpen() == false) {

View file

@ -749,10 +749,9 @@ void Scumm::addStringToStack(int var) {
void Scumm::initCharset(int charsetno) { void Scumm::initCharset(int charsetno) {
int i; int i;
if (_gameId == GID_ZAK256) { // FIXME why is this required? see also Scumm_v3::loadCharset
debug(0, "initCharset: FIXME using incorrect charset"); if (_gameId == GID_ZAK256)
charsetno = !charsetno; charsetno = !charsetno;
}
if (_features & GF_SMALL_HEADER) if (_features & GF_SMALL_HEADER)
loadCharset(charsetno); loadCharset(charsetno);