[Scummvm-cvs-logs] SF.net SVN: scummvm: [32336] scummvm/trunk/engines/cine/script_os.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Wed May 28 15:00:28 CEST 2008


Revision: 32336
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32336&view=rev
Author:   buddha_
Date:     2008-05-28 06:00:27 -0700 (Wed, 28 May 2008)

Log Message:
-----------
Implemented opcode 0x9A (o2_wasZoneChecked).

Modified Paths:
--------------
    scummvm/trunk/engines/cine/script_os.cpp

Modified: scummvm/trunk/engines/cine/script_os.cpp
===================================================================
--- scummvm/trunk/engines/cine/script_os.cpp	2008-05-28 12:05:40 UTC (rev 32335)
+++ scummvm/trunk/engines/cine/script_os.cpp	2008-05-28 13:00:27 UTC (rev 32336)
@@ -232,7 +232,7 @@
 	/* 98 */
 	{ 0, 0 },
 	{ 0, 0 },
-	{ &FWScript::o2_wasZoneChecked, "" },
+	{ &FWScript::o2_wasZoneChecked, "b" },
 	{ &FWScript::o2_op9B, "wwwwwwww" }, /* TODO: Name this opcode properly. */
 	/* 9C */
 	{ &FWScript::o2_op9C, "wwww" }, /* TODO: Name this opcode properly. */
@@ -649,10 +649,12 @@
 	return 0;
 }
 
-/*! \todo Implement this instruction
+/*! \todo Check the current implementation for correctness
  */
 int FWScript::o2_wasZoneChecked() {
-	warning("STUB: o2_wasZoneChecked()");
+	byte param = getNextByte();
+	_compare = (param < 16 && zoneData[param]);
+	debugC(5, kCineDebugScript, "Line: %d: o2_wasZoneChecked(%d)", _line, param);
 	return 0;
 }
 


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