mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
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).
svn-id: r33712
This commit is contained in:
parent
36e6bb27b5
commit
80648431d9
@ -1098,10 +1098,11 @@ void OSRenderer::renderOverlay(const Common::List<overlay>::iterator &it) {
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user