Fix portrait color. I just missed dependency from barometer.

svn-id: r19009
This commit is contained in:
Eugene Sandulenko 2005-10-11 01:00:56 +00:00
parent 49e8835c3c
commit 54449c920b
2 changed files with 4 additions and 4 deletions

View File

@ -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 ||

View File

@ -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) {