From 2965bd27086e443018cc9d63ac59befc884eed5b Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sun, 10 Nov 2002 17:17:11 +0000 Subject: increasing actor palette to 256 svn-id: r5505 --- scumm/actor.cpp | 10 ++++++++-- scumm/actor.h | 2 +- scumm/costume.h | 2 +- scumm/saveload.cpp | 1 + 4 files changed, 11 insertions(+), 4 deletions(-) (limited to 'scumm') diff --git a/scumm/actor.cpp b/scumm/actor.cpp index b2a62b1fa2..7e41ba5798 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1144,8 +1144,14 @@ void Actor::setActorCostume(int c) cost.reset(); } - for (i = 0; i < 32; i++) - palette[i] = 0xFF; + if (_features & GF_AFTER_V7) { + for (i = 0; i < 256; i++) + palette[i] = 0xFF; + } else { + for (i = 0; i < 32; i++) + palette[i] = 0xFF; + } + } void Actor::startWalkActor(int destX, int destY, int dir) diff --git a/scumm/actor.h b/scumm/actor.h index ab6a1e4739..3bb5188a8d 100644 --- a/scumm/actor.h +++ b/scumm/actor.h @@ -111,7 +111,7 @@ public: int16 animVariable[16]; uint16 sound[8]; CostumeData cost; - byte palette[64]; + byte palette[256]; protected: Scumm *_vm; diff --git a/scumm/costume.h b/scumm/costume.h index 1d5c58efdc..7b2d5cc66d 100644 --- a/scumm/costume.h +++ b/scumm/costume.h @@ -82,7 +82,7 @@ public: int _imgbufoffs; byte _repcolor; byte _replen; - byte _palette[32]; + byte _palette[256]; void proc6(); void proc5(); diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index f8a5d031b1..83917078c6 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -265,6 +265,7 @@ void Scumm::saveOrLoad(Serializer *s) MKLINE(Actor, speedy, sleUint16), MKLINE(Actor, cost.animCounter1, sleUint16), MKLINE(Actor, cost.animCounter2, sleByte), + // TODO: increase actor palette to 256 MKARRAY(Actor, palette[0], sleByte, 64), MKLINE(Actor, mask, sleByte), // FIXME: see actor.h comment MKLINE(Actor, shadow_mode, sleByte), -- cgit v1.2.3