From 79eb157fef249f7c27dd6097f6816cf967a0487d Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 25 Aug 2007 18:24:32 +0000 Subject: [PATCH] The palette is set correctly now when chapter points change and a cutaway is up svn-id: r28730 --- engines/saga/sfuncs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index 0c3d2a4a8df..b68c3954033 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -1871,6 +1871,7 @@ void Script::sfSetChapterPoints(SCRIPTFUNC_PARAMS) { int16 ethics = thread->pop(); int16 barometer = thread->pop(); int chapter = _vm->_scene->currentChapterNumber(); + static PalEntry cur_pal[PAL_ENTRIES]; _vm->_ethicsPoints[chapter] = ethics; _vm->_spiritualBarometer = ethics * 256 / barometer; @@ -1884,9 +1885,8 @@ void Script::sfSetChapterPoints(SCRIPTFUNC_PARAMS) { _vm->_spiritualBarometer * _vm->_interface->_portraitBgColor.green / 256, _vm->_spiritualBarometer * _vm->_interface->_portraitBgColor.blue / 256); - PalEntry *palPointer; - _vm->_scene->getBGPal(palPointer); - _vm->_gfx->setPalette(palPointer); + _vm->_gfx->getCurrentPal(cur_pal); + _vm->_gfx->setPalette(cur_pal); } void Script::sfSetPortraitBgColor(SCRIPTFUNC_PARAMS) {