[Scummvm-cvs-logs] SF.net SVN: scummvm:[44829] scummvm/trunk/engines/sci/engine/state.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Oct 9 18:20:15 CEST 2009


Revision: 44829
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44829&view=rev
Author:   thebluegr
Date:     2009-10-09 16:20:15 +0000 (Fri, 09 Oct 2009)

Log Message:
-----------
Fixed an issue when examining callk calls in the new graphics functions detection routine

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/state.cpp

Modified: scummvm/trunk/engines/sci/engine/state.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/state.cpp	2009-10-09 16:15:56 UTC (rev 44828)
+++ scummvm/trunk/engines/sci/engine/state.cpp	2009-10-09 16:20:15 UTC (rev 44829)
@@ -570,10 +570,10 @@
 											offset += 2;
 										}
 
+										byte argc = scr[offset++];
+
 										if (opcode == op_callk) {
 											if (kFuncNum == 8) {	// kDrawPic
-												// Now get the number of parameters
-												byte argc = scr[offset++];
 												// If kDrawPic is called with 6 parameters from the
 												// overlay selector, the game is using old graphics functions.
 												// Otherwise, if it's called with 8 parameters, it's using new


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