[Scummvm-cvs-logs] SF.net SVN: scummvm:[33967] scummvm/trunk/engines/cine/gfx.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Sun Aug 17 12:43:54 CEST 2008
Revision: 33967
http://scummvm.svn.sourceforge.net/scummvm/?rev=33967&view=rev
Author: buddha_
Date: 2008-08-17 10:43:54 +0000 (Sun, 17 Aug 2008)
Log Message:
-----------
Forwardport of branch-0-12-0's r33966: 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/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2008-08-17 10:39:33 UTC (rev 33966)
+++ scummvm/trunk/engines/cine/gfx.cpp 2008-08-17 10:43:54 UTC (rev 33967)
@@ -436,6 +436,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