aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-09-02 18:07:12 +0200
committerJohannes Schickel2011-09-03 13:41:57 +0200
commit44bc1bff0691ea085bd4619de6f611d9f0106493 (patch)
treed82db510aa4f96303ddbcaee8a904eac2bf2fb35
parent20f9028d9d75af0f73933728a35d70b6305a1687 (diff)
downloadscummvm-rg350-44bc1bff0691ea085bd4619de6f611d9f0106493.tar.gz
scummvm-rg350-44bc1bff0691ea085bd4619de6f611d9f0106493.tar.bz2
scummvm-rg350-44bc1bff0691ea085bd4619de6f611d9f0106493.zip
SCUMM: Limit Indy4 Amiga specific code to that version.
-rw-r--r--engines/scumm/palette.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp
index 7a6be90f68..64f40b96c4 100644
--- a/engines/scumm/palette.cpp
+++ b/engines/scumm/palette.cpp
@@ -584,10 +584,12 @@ void ScummEngine::stopCycle(int i) {
assertRange(0, i, 16, "stopCycle: cycle");
if (i != 0) {
_colorCycle[i - 1].delay = 0;
- cycl = &_colorCycle[i - 1];
- for (int j = cycl->start; j <= cycl->end && j < 32; ++j) {
- _shadowPalette[j] = j;
- _colorUsedByCycle[j] = 0;
+ if (_game.platform == Common::kPlatformAmiga && _game.id == GID_INDY4) {
+ cycl = &_colorCycle[i - 1];
+ for (int j = cycl->start; j <= cycl->end && j < 32; ++j) {
+ _shadowPalette[j] = j;
+ _colorUsedByCycle[j] = 0;
+ }
}
return;
}