From d571279d9976801b546d6ab02d0e8f6247a1f61f Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Tue, 7 Dec 2010 22:59:16 +0000 Subject: MOHAWK: Handle LB event-run opcodes svn-id: r54825 --- engines/mohawk/livingbooks.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 061970ce61..690dfbdae2 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -2101,7 +2101,14 @@ void LBItem::runScript(uint id, uint16 data, uint16 from) { target = this; debug(2, "Self-target on '%s'", _desc.c_str()); } - + + // an opcode in the form 0x1xx means to run the script for event 0xx + if ((entry->opcode & 0xff00) == 0x0100) { + // FIXME: pass on param + target->runScript(entry->opcode & 0xff); + break; + } + switch (entry->opcode) { case 0xffff: runCommand(entry->command); -- cgit v1.2.3