From 256d4c0e3a6369273e91386d537cecb168105934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Mon, 21 Apr 2003 09:03:17 +0000 Subject: [PATCH] added opcode for setting actor color palette in o2_actorSet() svn-id: r7050 --- scumm/script_v2.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 8a127728d96..b75f49a942d 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -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