[Scummvm-cvs-logs] SF.net SVN: scummvm:[33966] scummvm/branches/branch-0-12-0/engines/cine/gfx .cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Sun Aug 17 12:39:34 CEST 2008


Revision: 33966
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33966&view=rev
Author:   buddha_
Date:     2008-08-17 10:39:33 +0000 (Sun, 17 Aug 2008)

Log Message:
-----------
Fix to Future Wars's rendering of type 0 overlays (i.e. color sprites). Objects with negative frame values are supposed to be jumped over (Verified with disassembly).

Modified Paths:
--------------
    scummvm/branches/branch-0-12-0/engines/cine/gfx.cpp

Modified: scummvm/branches/branch-0-12-0/engines/cine/gfx.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/cine/gfx.cpp	2008-08-17 08:04:50 UTC (rev 33965)
+++ scummvm/branches/branch-0-12-0/engines/cine/gfx.cpp	2008-08-17 10:39:33 UTC (rev 33966)
@@ -408,6 +408,9 @@
 	switch (it->type) {
 	// color sprite
 	case 0:
+		if (objectTable[it->objIdx].frame < 0) {
+			return;
+		}
 		sprite = animDataTable + objectTable[it->objIdx].frame;
 		len = sprite->_realWidth * sprite->_height;
 		mask = new byte[len];


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