[Scummvm-cvs-logs] SF.net SVN: scummvm:[54825] scummvm/trunk/engines/mohawk/livingbooks.cpp
fuzzie at users.sourceforge.net
fuzzie at users.sourceforge.net
Tue Dec 7 23:59:17 CET 2010
Revision: 54825
http://scummvm.svn.sourceforge.net/scummvm/?rev=54825&view=rev
Author: fuzzie
Date: 2010-12-07 22:59:16 +0000 (Tue, 07 Dec 2010)
Log Message:
-----------
MOHAWK: Handle LB event-run opcodes
Modified Paths:
--------------
scummvm/trunk/engines/mohawk/livingbooks.cpp
Modified: scummvm/trunk/engines/mohawk/livingbooks.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/livingbooks.cpp 2010-12-07 22:59:01 UTC (rev 54824)
+++ scummvm/trunk/engines/mohawk/livingbooks.cpp 2010-12-07 22:59:16 UTC (rev 54825)
@@ -2101,7 +2101,14 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list