mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
DIRECTOR: Re-add sprite copy before applying delta frames
This commit is contained in:
parent
eba4a86797
commit
9d7fc01ba0
@ -413,6 +413,13 @@ void Score::updateCurrentFrame() {
|
||||
}
|
||||
|
||||
if (_curFrameNumber != nextFrameNumberToLoad) {
|
||||
// Load the current sprite information into the _currentFrame data store.
|
||||
// This is specifically because of delta updates; loading the next frame
|
||||
// in the score applies delta changes to _currentFrame, and ideally we want
|
||||
// those deltas to be applied over the top of whatever the current state is.
|
||||
for (uint ch = 0; ch < _channels.size(); ch++)
|
||||
*_currentFrame->_sprites[ch] = *_channels[ch]->_sprite;
|
||||
|
||||
// this copies in the frame data and updates _curFrameNumber
|
||||
loadFrame(nextFrameNumberToLoad, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user