increasing actor palette to 256

svn-id: r5505
This commit is contained in:
Paweł Kołodziejski 2002-11-10 17:17:11 +00:00
parent a413779432
commit 2965bd2708
4 changed files with 11 additions and 4 deletions

View File

@ -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)

View File

@ -111,7 +111,7 @@ public:
int16 animVariable[16];
uint16 sound[8];
CostumeData cost;
byte palette[64];
byte palette[256];
protected:
Scumm *_vm;

View File

@ -82,7 +82,7 @@ public:
int _imgbufoffs;
byte _repcolor;
byte _replen;
byte _palette[32];
byte _palette[256];
void proc6();
void proc5();

View File

@ -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),