[Scummvm-cvs-logs] SF.net SVN: scummvm: [21053] tools/trunk/descumm.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Fri Mar 3 16:54:01 CET 2006
Revision: 21053
Author: kirben
Date: 2006-03-03 16:53:01 -0800 (Fri, 03 Mar 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=21053&view=rev
Log Message:
-----------
Fix some opcdes in C64 maniac
Modified Paths:
--------------
tools/trunk/descumm.cpp
Modified: tools/trunk/descumm.cpp
===================================================================
--- tools/trunk/descumm.cpp 2006-03-04 00:06:28 UTC (rev 21052)
+++ tools/trunk/descumm.cpp 2006-03-04 00:53:01 UTC (rev 21053)
@@ -1662,6 +1662,16 @@
emit_if(buf, tmp);
}
+void do_if_active_object(char *buf, byte opcode)
+{
+ char tmp[256];
+
+ int obj = get_byte();
+ sprintf(tmp, "activeObject2 == %d", obj);
+
+ emit_if(buf, tmp);
+}
+
void do_if_state_code(char *buf, byte opcode)
{
char var[256];
@@ -1671,7 +1681,10 @@
var[0] = 0;
if (scriptVersion == 0) {
- sprintf(var, "%d", get_byte());
+ if (opcode & 0x40)
+ sprintf(var, "activeObject");
+ else
+ sprintf(var, "%d", get_byte());
} else {
get_var_or_word(var, opcode & 0x80);
}
@@ -2850,7 +2863,7 @@
break;
case 0x64:
case 0xE4:
- do_tok(buf, "unknown3", A1B);
+ do_if_active_object(buf, opcode);
break;
case 0x30:
More information about the Scummvm-git-logs
mailing list