[Scummvm-cvs-logs] SF.net SVN: scummvm:[33712] scummvm/trunk/engines/cine/gfx.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Sat Aug 9 17:17:33 CEST 2008
Revision: 33712
http://scummvm.svn.sourceforge.net/scummvm/?rev=33712&view=rev
Author: buddha_
Date: 2008-08-09 15:17:32 +0000 (Sat, 09 Aug 2008)
Log Message:
-----------
Added updating of global variable var5 to Operation Stealth's renderOverlay function's type 20 overlay case (Previously var5 wasn't updated anywhere!). Also added a lower bound for var5's value into a comparison (Previously only the upper bound was tested for).
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2008-08-09 14:15:34 UTC (rev 33711)
+++ scummvm/trunk/engines/cine/gfx.cpp 2008-08-09 15:17:32 UTC (rev 33712)
@@ -1098,10 +1098,11 @@
// masked background
case 20:
assert(it->objIdx < NUM_MAX_OBJECT);
+ var5 = it->x; // A global variable updated here!
obj = objectTable + it->objIdx;
sprite = animDataTable + obj->frame;
- if (obj->frame < 0 || it->x > 8 || !_bgTable[it->x].bg || sprite->_bpp != 1) {
+ if (obj->frame < 0 || it->x < 0 || it->x > 8 || !_bgTable[it->x].bg || sprite->_bpp != 1) {
break;
}
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