diff options
author | Johannes Schickel | 2006-06-04 12:16:12 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-04 12:16:12 +0000 |
commit | c590229796237de2176f7a0983c0183df42bd392 (patch) | |
tree | e4ab76e3122959f0f4f74f19d2bee6463c3214e5 /engines | |
parent | 45330298efa44f4750bc06514c4d4ebc341ed34e (diff) | |
download | scummvm-rg350-c590229796237de2176f7a0983c0183df42bd392.tar.gz scummvm-rg350-c590229796237de2176f7a0983c0183df42bd392.tar.bz2 scummvm-rg350-c590229796237de2176f7a0983c0183df42bd392.zip |
Should fix strange palettes in some rooms.
svn-id: r22910
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/scene.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/kyra/scene.cpp b/engines/kyra/scene.cpp index 972f4e00be..a7e4025fbe 100644 --- a/engines/kyra/scene.cpp +++ b/engines/kyra/scene.cpp @@ -831,14 +831,21 @@ void KyraEngine::initSceneObjectList(int brandonAlive) { } void KyraEngine::initSceneScreen(int brandonAlive) { - // XXX (Pointless?) Palette stuff + // XXX Palette stuff if (_unkScreenVar2 == 1) { _screen->shuffleScreen(8, 8, 304, 128, 2, 0, _unkScreenVar3, false); } else { _screen->copyRegion(8, 8, 8, 8, 304, 128, 2, 0); } _screen->updateScreen(); - // XXX More (pointless?) palette stuff + if (_unkScreenVar1 && _paletteChanged) { + if (!queryGameFlag(0xA0)) { + // XXX Palette stuff + _screen->setScreenPalette(_screen->_currentPalette); + } else { + // XXX Palette stuff + } + } if (!_scriptInterpreter->startScript(_scriptClick, 2)) error("Could not start script function 2 of scene script"); |