From 373e8455546d730fb628122ad9ba4b7fab2052b1 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 22 Feb 2003 10:39:50 +0000 Subject: improved a little akos_queCommand func svn-id: r6631 --- scumm/akos.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'scumm') diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 69ba36919c..26adc184d2 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -24,7 +24,7 @@ #include "actor.h" #include "akos.h" #include "imuse.h" - +#include "sound.h" #if !defined(__GNUC__) #pragma START_PACK_STRUCTS @@ -1606,19 +1606,26 @@ void Scumm::akos_queCommand(byte cmd, Actor *a, int param_1, int param_2) case 1: a->putActor(0, 0, 0); break; + case 2: + warning("unimplemented akos_queCommand(2,%d,%d,%d)", a->number, param_1, param_2); + // start script token in actor + break; case 3: if (param_1 != 0) { - if (_imuseDigital) { - _imuseDigital->startSound(param_1); -// _imuseDigital->doCommand(12, 0x400, param_1, 0, 0, 0, 0, 0); - } + _sound->addSoundToQueue(param_1); } break; - case 2: case 4: + a->startAnimActor(param_1); + // param_2 ? + break; case 5: + a->forceClip = param_1; + break; case 6: - warning("unimplemented akos_queCommand(%d,%d,%d,%d)", cmd, a->number, param_1, param_2); + warning("unimplemented akos_queCommand(6,%d,%d,%d)", a->number, param_1, param_2); +// a->offs_x = param_1; +// a->offs_y = param_2; break; case 7: if (param_1 != 0) { -- cgit v1.2.3