aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-20 20:05:00 +0000
committerMartin Kiewitz2010-06-20 20:05:00 +0000
commit3a9217dd5a2b1f9376f65111f8b975c07d50a9ad (patch)
tree9a29cab23dff97f52f94f21a5ccba43b6b664d1c /engines/sci
parenta22e294ca674a2e879b31eff877fc30d256965d7 (diff)
downloadscummvm-rg350-3a9217dd5a2b1f9376f65111f8b975c07d50a9ad.tar.gz
scummvm-rg350-3a9217dd5a2b1f9376f65111f8b975c07d50a9ad.tar.bz2
scummvm-rg350-3a9217dd5a2b1f9376f65111f8b975c07d50a9ad.zip
SCI: disable palvary when reverse is fully done - fixes palette getting stuck in pharkas (the broken palette in there is actually not caused by palvary, it was just overwritten before by view palette updates and those dont occur when palvary is active)
svn-id: r50093
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/palette.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index abe6043f29..3ff6c4dc54 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -596,6 +596,8 @@ void GfxPalette::palVaryProcess(int signal, bool setPalette) {
// We don't need updates anymore, if we reached end-position
if (_palVaryStep == _palVaryStepStop)
g_sci->getTimerManager()->removeTimerProc(&palVaryCallback);
+ if (_palVaryStep == 0)
+ _palVaryResourceId = -1;
// Calculate inbetween palette
Sci::Color inbetween;