aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-07-12 21:16:50 +0200
committerWillem Jan Palenstijn2013-07-12 21:17:40 +0200
commit52541fc2579ae58823f31e1eadb2a860f87148de (patch)
tree299ba2db422c266111c71b2d0a5ae7c39633f2eb
parent1f6894ab25e95324e6847f3912812b4f5de8af6f (diff)
downloadscummvm-rg350-52541fc2579ae58823f31e1eadb2a860f87148de.tar.gz
scummvm-rg350-52541fc2579ae58823f31e1eadb2a860f87148de.tar.bz2
scummvm-rg350-52541fc2579ae58823f31e1eadb2a860f87148de.zip
TUCKER: Fix palette fades
This is a regression from 362b0cd5e4a71a0b2610ff8abb6aeecddc842cf0 and fixes bug #3614686.
-rw-r--r--engines/tucker/tucker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index 2bd7c47b62..6b538a6fde 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -941,7 +941,7 @@ void TuckerEngine::fadeOutPalette(int colorsCount) {
_system->getPaletteManager()->grabPalette(pal, 0, colorsCount);
for (int color = 0; color < colorsCount; ++color) {
for (int i = 0; i < 3; ++i) {
- const int c = int(pal[color * 3 + i]) + kFadePaletteStep * 3;
+ const int c = int(pal[color * 3 + i]) + kFadePaletteStep * 4;
pal[color * 3 + i] = MIN<int>(c, _currentPalette[color * 3 + i]);
}
}
@@ -954,7 +954,7 @@ void TuckerEngine::fadeInPalette(int colorsCount) {
_system->getPaletteManager()->grabPalette(pal, 0, colorsCount);
for (int color = 0; color < colorsCount; ++color) {
for (int i = 0; i < 3; ++i) {
- const int c = int(pal[color * 3 + i]) - kFadePaletteStep * 3;
+ const int c = int(pal[color * 3 + i]) - kFadePaletteStep * 4;
pal[color * 3 + i] = MAX<int>(c, 0);
}
}