From 09495a7fc9ee4554c996c7ed159f7781664a0bbe Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 15 Dec 2003 11:06:41 +0000 Subject: [PATCH] Small color table correction for demo mode of v1 maniac svn-id: r11650 --- scumm/saveload.cpp | 7 +++++-- scumm/script_v2.cpp | 2 +- scumm/scummvm.cpp | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index f9fbdc94303..986657f9367 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -178,9 +178,12 @@ bool ScummEngine::loadState(int slot, bool compat, SaveFileManager *mgr) { // ever add options for using different 16-colour palettes. if (_version == 1) { - if (_gameId == GID_MANIAC) + if (_gameId == GID_MANIAC) { setupV1ManiacPalette(); - else + if (_demoMode) + setPalColor(15, 252, 84, 252); + + } else setupV1ZakPalette(); } else if (_features & GF_16COLOR) { if ((_features & GF_AMIGA) || (_features & GF_ATARI_ST)) diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 5466be9c2bf..279d179d703 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -825,7 +825,7 @@ void ScummEngine_v2::o2_verbOps() { vs->verbid = verb; if (_version == 1) { if (_gameId == GID_MANIAC && _demoMode) - vs->color = 4; + vs->color = 15; else vs->color = 5; diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index a986821294e..c8f09151894 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1019,9 +1019,11 @@ void ScummEngine::scummInit() { for (i = 0; i < 256; i++) _roomPalette[i] = i; if (_version == 1) { - if (_gameId == GID_MANIAC) + if (_gameId == GID_MANIAC) { setupV1ManiacPalette(); - else + if (_demoMode) + setPalColor(15, 252, 84, 252); + } else setupV1ZakPalette(); } else if (_features & GF_16COLOR) { for (i = 0; i < 16; i++)