aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--saga/interface.cpp6
-rw-r--r--saga/sfuncs.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp
index 890ef10946..ae35f36877 100644
--- a/saga/interface.cpp
+++ b/saga/interface.cpp
@@ -615,9 +615,9 @@ void Interface::draw() {
_vm->_gfx->setPaletteColor(kIHNMColorPortrait, 0xff, 0xff, 0xff);
else
_vm->_gfx->setPaletteColor(kIHNMColorPortrait,
- _portraitBgColor.red,
- _portraitBgColor.green,
- _portraitBgColor.blue);
+ _vm->_spiritualBarometer * _portraitBgColor.red / 256,
+ _vm->_spiritualBarometer * _portraitBgColor.green / 256,
+ _vm->_spiritualBarometer * _portraitBgColor.blue / 256);
}
if (_panelMode == kPanelMain || _panelMode == kPanelConverse ||
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index c4d5493e27..e76a41992f 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -1848,7 +1848,7 @@ void Script::sfSetChapterPoints(SCRIPTFUNC_PARAMS) {
int chapter = _vm->_scene->currentChapterNumber();
_vm->_ethicsPoints[chapter] = ethics;
- _vm->_spiritualBarometer = barometer;
+ _vm->_spiritualBarometer = ethics * 256 / barometer;
}
void Script::sfSetPortraitBgColor(SCRIPTFUNC_PARAMS) {