diff options
author | Scott Percival | 2020-01-04 02:24:57 +0800 |
---|---|---|
committer | Scott Percival | 2020-01-04 10:57:35 +0800 |
commit | 7e6c925a683d185f81d1da8b9806270f56040ed2 (patch) | |
tree | bea36c3e9d8791595a0dffc9bafe441f49fc3c93 /engines/director/cast.cpp | |
parent | 70c231a9f3fa61e628e7b1c82deca49d947a6ded (diff) | |
download | scummvm-rg350-7e6c925a683d185f81d1da8b9806270f56040ed2.tar.gz scummvm-rg350-7e6c925a683d185f81d1da8b9806270f56040ed2.tar.bz2 scummvm-rg350-7e6c925a683d185f81d1da8b9806270f56040ed2.zip |
DIRECTOR: Fix kCastMemberSprite to fetch shape from cast
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r-- | engines/director/cast.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp index 6e87c7a6de..dc1170b611 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -282,6 +282,18 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { _ink = static_cast<InkType>(_fillType & 0x3f); _lineThickness = stream.readByte(); _lineDirection = stream.readByte(); + } else if (version == 4) { + flags = 0; + unk1 = stream.readByte(); + _shapeType = static_cast<ShapeType>(stream.readByte()); + _initialRect = Score::readRect(stream); + _pattern = stream.readUint16BE(); + _fgCol = (uint8)stream.readByte(); + _bgCol = (uint8)stream.readByte(); + _fillType = stream.readByte(); + _ink = static_cast<InkType>(_fillType & 0x3f); + _lineThickness = stream.readByte(); + _lineDirection = stream.readByte(); } else { flags = stream.readByte(); unk1 = stream.readByte(); |