aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2011-08-21 21:52:49 +0200
committerJohannes Schickel2011-08-21 21:52:49 +0200
commit7ed005716cafe36bb6801e71ff43e70a05d8c002 (patch)
treefe31e2dff7450934c4a9543d19b24df5304e0fd6 /engines/scumm
parentbc6ed998a9d80b60057e910cc983a5fca7c0a002 (diff)
downloadscummvm-rg350-7ed005716cafe36bb6801e71ff43e70a05d8c002.tar.gz
scummvm-rg350-7ed005716cafe36bb6801e71ff43e70a05d8c002.tar.bz2
scummvm-rg350-7ed005716cafe36bb6801e71ff43e70a05d8c002.zip
SCUMM: Disable setShadowPalette for Indy4 Amiga.
Like palManipulateInit the setShadowPalette function is a nullsub in the original Amiga executable of Indy4.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/palette.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index bf5f20f1bd..c7305121e5 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -650,6 +650,12 @@ void ScummEngine::setShadowPalette(int slot, int redScale, int greenScale, int b
int i;
byte *curpal;
+ // This function is actually a nullsub in Indy4 Amiga.
+ // It might very well be a nullsub in other Amiga games, but for now I
+ // limit this to Indy4 Amiga, since that is the only game I can check.
+ if (_game.platform == Common::kPlatformAmiga && _game.id == GID_INDY4)
+ return;
+
if (slot < 0 || slot >= NUM_SHADOW_PALETTE)
error("setShadowPalette: invalid slot %d", slot);