[Scummvm-cvs-logs] SF.net SVN: scummvm:[46919] scummvm/trunk/engines/mohawk/myst_scripts.cpp

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Sun Jan 3 09:27:33 CET 2010


Revision: 46919
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46919&view=rev
Author:   tdhs
Date:     2010-01-03 08:27:33 +0000 (Sun, 03 Jan 2010)

Log Message:
-----------
Mohawk : Stop Myst Script Opcode 200 continuously reloading the same image...

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/myst_scripts.cpp

Modified: scummvm/trunk/engines/mohawk/myst_scripts.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst_scripts.cpp	2010-01-03 05:29:30 UTC (rev 46918)
+++ scummvm/trunk/engines/mohawk/myst_scripts.cpp	2010-01-03 08:27:33 UTC (rev 46919)
@@ -22,7 +22,7 @@
  * $Id$
  *
  */
- 
+
 #include "mohawk/myst.h"
 #include "mohawk/graphics.h"
 #include "mohawk/myst_scripts.h"
@@ -3125,7 +3125,8 @@
 			else
 				rect = Common::Rect(0, 0, 544, 333);
 
-			_vm->_gfx->copyImageToScreen(g_opcode200Parameters.imageBaseId + curImageIndex, rect);
+			if (curImageIndex != lastImageIndex)
+				_vm->_gfx->copyImageToScreen(g_opcode200Parameters.imageBaseId + curImageIndex, rect);
 
 			// TODO: Comparison with original engine shows that this simple solution
 			//       may not be the correct one and the choice of which sound


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