aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2007-08-25 18:24:32 +0000
committerFilippos Karapetis2007-08-25 18:24:32 +0000
commit79eb157fef249f7c27dd6097f6816cf967a0487d (patch)
tree01ac8ea4b561d600ec279d97c73c063752a2a186
parentf6322b698e50f01ea32564167626f5d5cb025196 (diff)
downloadscummvm-rg350-79eb157fef249f7c27dd6097f6816cf967a0487d.tar.gz
scummvm-rg350-79eb157fef249f7c27dd6097f6816cf967a0487d.tar.bz2
scummvm-rg350-79eb157fef249f7c27dd6097f6816cf967a0487d.zip
The palette is set correctly now when chapter points change and a cutaway is up
svn-id: r28730
-rw-r--r--engines/saga/sfuncs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp
index 0c3d2a4a8d..b68c395403 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) {