added opcode for setting actor color palette in o2_actorSet()

svn-id: r7050
This commit is contained in:
Paweł Kołodziejski 2003-04-21 09:03:17 +00:00
parent a80927891c
commit 256d4c0e3a

View File

@ -567,6 +567,7 @@ void Scumm_v2::o2_actorSet() {
int act = getVarOrDirectByte(0x80);
int arg = getVarOrDirectByte(0x40);
Actor *a = derefActorSafe(act, "actorSet");
int i;
if (!a)
return;
@ -576,10 +577,10 @@ void Scumm_v2::o2_actorSet() {
a->sound[0] = arg;
break;
case 2: { // Unknown - Init?
int unk1 = fetchScriptByte();
warning("o2_actorSet(%d, %d, %d) - Init(?) Not Implemented", act, arg, unk1);
}
case 2: // Actor Set Color
i = fetchScriptByte();
a->palette[i] = arg;
a->needRedraw = true;
break;
case 3: // Actor Name