[Scummvm-cvs-logs] SF.net SVN: scummvm: [24608] tools/trunk/descumm.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Nov 4 19:18:38 CET 2006


Revision: 24608
          http://svn.sourceforge.net/scummvm/?rev=24608&view=rev
Author:   fingolfin
Date:     2006-11-04 10:18:34 -0800 (Sat, 04 Nov 2006)

Log Message:
-----------
In Zak V1/V2, vars 234 resp. 235 are always 0 resp. 1 -- use this fact in descumm for nicer output if -z2 or -z1 is passed to descumm

Modified Paths:
--------------
    tools/trunk/descumm.cpp

Modified: tools/trunk/descumm.cpp
===================================================================
--- tools/trunk/descumm.cpp	2006-11-04 17:45:14 UTC (rev 24607)
+++ tools/trunk/descumm.cpp	2006-11-04 18:18:34 UTC (rev 24608)
@@ -496,6 +496,9 @@
 			i < ARRAYSIZE(var_names0) && var_names0[i]) {
 		buf += sprintf(buf, var_names0[i]);
 		return buf;
+	} else if (scriptVersion <= 2 && ZakFlag && (i == 234 || i == 235)) {
+		buf += sprintf(buf, (i == 234) ? "ZERO" : "ONE");
+		return buf;
 	} else if ((i & 0x8000) && (GF_UNBLOCKED || ZakFlag))
 		buf += sprintf(buf, "Var[%d Bit %d", (i & 0x0FFF) >> 4, i & 0x000F);
 	else


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