From c584515b2439a53cd17ef03597132b94bd342aa5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 8 Oct 2014 22:21:26 -0400 Subject: MADS: Fix palette for display of intro animation --- engines/mads/nebular/menu_nebular.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 52f69884bd..6db9179608 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -877,10 +877,11 @@ void AnimationView::doFrame() { void AnimationView::loadNextResource() { Scene &scene = _vm->_game->_scene; + Palette &palette = *_vm->_palette; ResourceEntry &resEntry = _resources[_resourceIndex]; if (resEntry._bgFlag) - _vm->_palette->resetGamePalette(1, 8); + palette.resetGamePalette(1, 8); // Load the new animation delete _currentAnimation; @@ -891,6 +892,7 @@ void AnimationView::loadNextResource() { // Signal for a screen refresh scene._spriteSlots.fullRefresh(); + palette.setFullPalette(palette._mainPalette); // If a sound driver has been specified, then load the correct one if (!_currentAnimation->_header._soundName.empty()) { -- cgit v1.2.3