DIRECTOR: Fix palette change for puppet transitions

Fixes palette glitches when rotating the probe in the Mac version
of Majestic: Part 1.
This commit is contained in:
Scott Percival 2023-03-04 17:30:33 +08:00 committed by Eugene Sandulenko
parent 82e891d1d3
commit 68bcf717df

View File

@ -590,8 +590,8 @@ bool Score::renderTransition(uint16 frameId) {
TransParams *tp = _window->_puppetTransition;
if (tp) {
_window->playTransition(frameId, tp->duration, tp->area, tp->chunkSize, tp->type, 0);
setLastPalette(frameId);
_window->playTransition(frameId, tp->duration, tp->area, tp->chunkSize, tp->type, resolvePaletteId(currentFrame->_palette.paletteId));
delete _window->_puppetTransition;
_window->_puppetTransition = nullptr;
return true;