aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-07-28 13:28:25 +0000
committerFilippos Karapetis2007-07-28 13:28:25 +0000
commit2c40b302abfa36cc0fc04b3911186be919c01129 (patch)
tree19dd84d7b67b9ba286fcfbdb8791408e99b06812 /engines/saga
parentb8f55ec74286d4e78f6bb82e1b3f6c33ad59b92f (diff)
downloadscummvm-rg350-2c40b302abfa36cc0fc04b3911186be919c01129.tar.gz
scummvm-rg350-2c40b302abfa36cc0fc04b3911186be919c01129.tar.bz2
scummvm-rg350-2c40b302abfa36cc0fc04b3911186be919c01129.zip
The palette in Benny's part in the IHNM demo is correct now
svn-id: r28266
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/animation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp
index e9f3494cd2..bad1155806 100644
--- a/engines/saga/animation.cpp
+++ b/engines/saga/animation.cpp
@@ -155,6 +155,12 @@ void Anim::playCutaway(int cut, bool fade) {
_vm->_gfx->setPalette(palette);
+ // WORKAROUND for a bug found in the original IHNM demo. The palette of cutaway 12 is incorrect (the incorrect
+ // palette can be seen in the original demo too, for a split second). Therefore, use the saved palette for this
+ // cutaway
+ if (_vm->getGameId() == GID_IHNM_DEMO && cut == 12)
+ _vm->_gfx->restorePalette();
+
free(buf);
free(resourceData);