mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 21:24:53 +00:00
added opcode for setting actor color palette in o2_actorSet()
svn-id: r7050
This commit is contained in:
parent
a80927891c
commit
256d4c0e3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user