diff options
author | Paul Gilbert | 2014-05-26 23:16:24 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-26 23:16:24 -0400 |
commit | 53332f8ab879b150883544fb8ea3987bdc190cdf (patch) | |
tree | 1e95bb843482750ab4fe2fc11f7fa586530ad5ab /engines/mads | |
parent | c06e330ba87410b36672936c76154f9352b95d6c (diff) | |
download | scummvm-rg350-53332f8ab879b150883544fb8ea3987bdc190cdf.tar.gz scummvm-rg350-53332f8ab879b150883544fb8ea3987bdc190cdf.tar.bz2 scummvm-rg350-53332f8ab879b150883544fb8ea3987bdc190cdf.zip |
MADS: Fix occassional character gliding in cutscenes
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/animation.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index ac8c9969b7..0f98cb52e6 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -110,9 +110,15 @@ void AnimFrameEntry::load(Common::SeekableReadStream *f, bool uiFlag) { _spriteSlot._position.y = f->readSint16LE(); } else { _frameNumber = f->readUint16LE(); + if (_frameNumber & 0x8000) + _frameNumber = -(_frameNumber & 0x7fff); + _seqIndex = f->readByte(); _spriteSlot._spritesIndex = f->readByte(); - _spriteSlot._frameNumber = f->readSint16LE(); + _spriteSlot._frameNumber = f->readUint16LE(); + if (_spriteSlot._frameNumber & 0x8000) + _spriteSlot._frameNumber = -(_spriteSlot._frameNumber & 0x7fff); + _spriteSlot._position.x = f->readSint16LE(); _spriteSlot._position.y = f->readSint16LE(); _spriteSlot._depth = f->readSByte(); |