diff options
author | Eugene Sandulenko | 2019-12-24 22:47:06 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-24 22:47:06 +0100 |
commit | 578d013e9c9e59ea7fb6a9aeeda512737d254327 (patch) | |
tree | cd119cf9e9f80ee87980c1cc0fab80e903280741 /engines/director/cast.cpp | |
parent | cdcce73ff853b92aa76f44ed30cf4130990706e2 (diff) | |
download | scummvm-rg350-578d013e9c9e59ea7fb6a9aeeda512737d254327.tar.gz scummvm-rg350-578d013e9c9e59ea7fb6a9aeeda512737d254327.tar.bz2 scummvm-rg350-578d013e9c9e59ea7fb6a9aeeda512737d254327.zip |
DIRECTOR: More debug output and code tidying up
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r-- | engines/director/cast.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp index 2a59443e27..f47fa37ad0 100644 --- a/engines/director/cast.cpp +++ b/engines/director/cast.cpp @@ -249,9 +249,11 @@ void TextCast::setText(const char *text) { } ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { + byte flags, unk1; + if (version < 4) { - /*byte flags = */ stream.readByte(); - /*unk1 = */ stream.readByte(); + flags = stream.readByte(); + unk1 = stream.readByte(); _shapeType = static_cast<ShapeType>(stream.readByte()); _initialRect = Score::readRect(stream); _pattern = stream.readUint16BE(); @@ -261,8 +263,8 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { _lineThickness = stream.readByte(); _lineDirection = stream.readByte(); } else { - stream.readByte(); - stream.readByte(); + flags = stream.readByte(); + unk1 = stream.readByte(); _initialRect = Score::readRect(stream); _boundingRect = Score::readRect(stream); @@ -275,6 +277,12 @@ ShapeCast::ShapeCast(Common::ReadStreamEndian &stream, uint16 version) { _lineDirection = 0; } _modified = 0; + + debugC(3, kDebugLoading, "ShapeCast: fl: %x unk1: %x type: %d pat: %d fg: %d bg: %d fill: %d thick: %d dir: %d", + flags, unk1, _shapeType, _pattern, _fgCol, _bgCol, _fillType, _lineThickness, _lineDirection); + + if (debugChannelSet(3, kDebugLoading)) + _initialRect.debugPrint(0, "ShapeCast: rect:"); } ButtonCast::ButtonCast(Common::ReadStreamEndian &stream, uint16 version) : TextCast(stream, version) { |