diff options
author | Kari Salminen | 2008-08-09 15:17:32 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-09 15:17:32 +0000 |
commit | 80648431d93dbbeb8707f64e334c31c2e7ec8587 (patch) | |
tree | f10b8c97a083a5e6fa75a3c31796260dd78a6e63 /engines/cine/gfx.cpp | |
parent | 36e6bb27b5c5fed7f304e80801afc4b8fa292ccd (diff) | |
download | scummvm-rg350-80648431d93dbbeb8707f64e334c31c2e7ec8587.tar.gz scummvm-rg350-80648431d93dbbeb8707f64e334c31c2e7ec8587.tar.bz2 scummvm-rg350-80648431d93dbbeb8707f64e334c31c2e7ec8587.zip |
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
Diffstat (limited to 'engines/cine/gfx.cpp')
-rw-r--r-- | engines/cine/gfx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index be65b2f9dc..524610eece 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -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; } |