diff options
author | Eugene Sandulenko | 2016-10-28 22:56:15 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-29 08:07:19 -0700 |
commit | 85dd217cc0e031f75a1534da9f000b74ac7df143 (patch) | |
tree | a02f84a39858029ae48b6522d379d3d7cc6c8164 /engines/director/frame.cpp | |
parent | 703178e033934b7aa09ab5e995480d967ef7113a (diff) | |
download | scummvm-rg350-85dd217cc0e031f75a1534da9f000b74ac7df143.tar.gz scummvm-rg350-85dd217cc0e031f75a1534da9f000b74ac7df143.tar.bz2 scummvm-rg350-85dd217cc0e031f75a1534da9f000b74ac7df143.zip |
DIRECTOR: Fix D4+ score reading
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r-- | engines/director/frame.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 9adbf003ee..b84023961c 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -161,20 +161,21 @@ void Frame::readChannels(Common::ReadStreamEndian *stream) { _palette->cycleCount = stream->readUint16(); byte unk[11]; - stream->read(unk, 9); - //Common::hexdump(unk, 6); + stream->read(unk, 6); - #if 0 if (_vm->getPlatform() == Common::kPlatformMacintosh) { - stream->read(unk, 11); - //Common::hexdump(unk, 11); + if (_vm->getVersion() < 4) { + stream->read(unk, 3); + } else { + stream->read(unk, 11); + //Common::hexdump(unk, 11); - if (_vm->getVersion() >= 5) { - stream->read(unk, 7); - //Common::hexdump(unk, 7); + if (_vm->getVersion() >= 5) { + stream->read(unk, 7); + //Common::hexdump(unk, 7); + } } } - #endif for (int i = 0; i < CHANNEL_COUNT; i++) { Sprite &sprite = *_sprites[i + 1]; |