aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-22 12:43:23 +0000
committerJohannes Schickel2008-03-22 12:43:23 +0000
commitdf78d4d4843ecd3ab815a028f42b26751bbb5cdf (patch)
tree296caeea26cdaba5de9fbd4437d4dae6af98754f
parent63b1de562801d93919a3241c3525466d2a24754f (diff)
downloadscummvm-rg350-df78d4d4843ecd3ab815a028f42b26751bbb5cdf.tar.gz
scummvm-rg350-df78d4d4843ecd3ab815a028f42b26751bbb5cdf.tar.bz2
scummvm-rg350-df78d4d4843ecd3ab815a028f42b26751bbb5cdf.zip
Fix for bug #1922514 "HoF: palette artifacts when abom. snowman".
svn-id: r31220
-rw-r--r--engines/kyra/kyra_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 927b7e5c3e..2052c34002 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -1291,7 +1291,7 @@ void KyraEngine_v2::updateCharPal(int unk1) {
_screen->setScreenPalette(_screen->getPalette(0));
unkVar1 = true;
_charPalEntry = palEntry;
- } else if (unkVar1 && !unk1) {
+ } else if (unkVar1 || !unk1) {
memcpy(_screen->getPalette(0) + 336, &_scenePal[(palEntry << 4) * 3], 48);
_screen->setScreenPalette(_screen->getPalette(0));
unkVar1 = false;