diff options
author | Dmitry Iskrich | 2016-06-03 22:56:23 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 06a655ff9d9ca6bead06408b12fd1f76cc5a62cf (patch) | |
tree | 50677ea0bcce00391996360ee0e9682b51f510f2 | |
parent | bd345ce81c0edd1267909b0bcac7bcf65dea834b (diff) | |
download | scummvm-rg350-06a655ff9d9ca6bead06408b12fd1f76cc5a62cf.tar.gz scummvm-rg350-06a655ff9d9ca6bead06408b12fd1f76cc5a62cf.tar.bz2 scummvm-rg350-06a655ff9d9ca6bead06408b12fd1f76cc5a62cf.zip |
DIRECTOR: Fix bitmap cast reading
-rw-r--r-- | engines/director/score.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 889020cdff..b8d4e3d40f 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -209,13 +209,15 @@ void Score::loadActions(Common::SeekableReadStream &stream) { BitmapCast::BitmapCast(Common::SeekableReadStream &stream) { /*byte flags = */ stream.readByte(); - /*uint16 someFlaggyThing = */ stream.readUint16BE(); + uint16 someFlaggyThing = stream.readUint16BE(); initialRect = Score::readRect(stream); boundingRect = Score::readRect(stream); regY = stream.readUint16BE(); regX = stream.readUint16BE(); - /*uint16 unk1 =*/ stream.readUint16BE(); - /*uint16 unk2 =*/ stream.readUint16BE(); + if (someFlaggyThing & 0x8000) { + /*uint16 unk1 =*/ stream.readUint16BE(); + /*uint16 unk2 =*/ stream.readUint16BE(); + } } TextCast::TextCast(Common::SeekableReadStream &stream) { |