diff options
author | Eugene Sandulenko | 2016-10-28 22:01:37 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-29 08:07:19 -0700 |
commit | 9f35d6fdc6cc4462f1cb3a9916aba298d0a3e1be (patch) | |
tree | 6d8a3329f0c02999baf4f8cbc3d1263c67b57a33 /engines/director/frame.cpp | |
parent | 53fd38f56dae3e14605b098eaece16f7c4ff73f4 (diff) | |
download | scummvm-rg350-9f35d6fdc6cc4462f1cb3a9916aba298d0a3e1be.tar.gz scummvm-rg350-9f35d6fdc6cc4462f1cb3a9916aba298d0a3e1be.tar.bz2 scummvm-rg350-9f35d6fdc6cc4462f1cb3a9916aba298d0a3e1be.zip |
DIRECTOR: Added more debug output to cast reading
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r-- | engines/director/frame.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index c00d8bd2b4..57208888a7 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -179,6 +179,8 @@ void Frame::readMainChannels(Common::SeekableSubReadStreamEndian &stream, uint16 break; } } + + warning("%d %d %d %d %d %d %d %d %d %d %d", _actionId, _soundType1, _transDuration, _transChunkSize, _tempo, _transType, _sound1, _skipFrameFlag, _blend, _sound2, _soundType2); } void Frame::readPaletteInfo(Common::SeekableSubReadStreamEndian &stream) { @@ -198,11 +200,13 @@ void Frame::readSprite(Common::SeekableSubReadStreamEndian &stream, uint16 offse uint16 finishPosition = fieldPosition + size; Sprite &sprite = *_sprites[spritePosition]; + int x1 = 0; + int x2 = 0; while (fieldPosition < finishPosition) { switch (fieldPosition) { case kSpritePositionUnk1: - /*byte x1 = */ stream.readByte(); + x1 = stream.readByte(); fieldPosition++; break; case kSpritePositionEnabled: @@ -210,7 +214,7 @@ void Frame::readSprite(Common::SeekableSubReadStreamEndian &stream, uint16 offse fieldPosition++; break; case kSpritePositionUnk2: - /*byte x2 = */ stream.readUint16(); + x2 = stream.readUint16(); fieldPosition += 2; break; case kSpritePositionFlags: @@ -251,6 +255,8 @@ void Frame::readSprite(Common::SeekableSubReadStreamEndian &stream, uint16 offse break; } } + warning("%03d(%d)[%x,%x,%04x,%d/%d/%d/%d]", sprite._castId, sprite._enabled, x1, x2, sprite._flags, sprite._startPoint.x, sprite._startPoint.y, sprite._width, sprite._height); + } void Frame::prepareFrame(Score *score) { |