aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2005-10-11 01:00:56 +0000
committerEugene Sandulenko2005-10-11 01:00:56 +0000
commit54449c920ba40b19270a13508fc956a6ff6637c3 (patch)
tree7df3a59e277bfa292b2145a3c16597164664c764 /saga
parent49e8835c3cd57955135cb71700f1bfc5525c90c9 (diff)
downloadscummvm-rg350-54449c920ba40b19270a13508fc956a6ff6637c3.tar.gz
scummvm-rg350-54449c920ba40b19270a13508fc956a6ff6637c3.tar.bz2
scummvm-rg350-54449c920ba40b19270a13508fc956a6ff6637c3.zip
Fix portrait color. I just missed dependency from barometer.
svn-id: r19009
Diffstat (limited to 'saga')
-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) {