diff options
author | Max Horn | 2004-08-09 23:22:29 +0000 |
---|---|---|
committer | Max Horn | 2004-08-09 23:22:29 +0000 |
commit | 87f1cd48d62cf8147bd06cda941fdf9370a269f0 (patch) | |
tree | 389eac53fa7ace6027bd6f561b84d08d95f243c9 /scumm | |
parent | a6e1eb9c95d1791bba853c8da85466895ea12be4 (diff) | |
download | scummvm-rg350-87f1cd48d62cf8147bd06cda941fdf9370a269f0.tar.gz scummvm-rg350-87f1cd48d62cf8147bd06cda941fdf9370a269f0.tar.bz2 scummvm-rg350-87f1cd48d62cf8147bd06cda941fdf9370a269f0.zip |
Fix for bug #902387 (MANIAC64: Graphical glitch when Space Police arrives)
svn-id: r14528
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/costume.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp index 617ac078ad..8f9719164a 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -209,7 +209,7 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) { v1.scaleXstep = _mirror ? 1 : -1; if (_vm->_version == 1) - //HACK: it fix gfx glitches left by actor costume in V1 games, when actor moving to left + // HACK: Fix a glitch where costumes in V1 games leave a trail when the actor moves left _vm->markRectAsDirty(kMainVirtScreen, rect.left, rect.right + 8, rect.top, rect.bottom, _actorID); else _vm->markRectAsDirty(kMainVirtScreen, rect.left, rect.right + 1, rect.top, rect.bottom, _actorID); @@ -405,7 +405,7 @@ void CostumeRenderer::procC64(int actor) { if (!rep) color = *src++; - if (0 <= y && y < _outheight) { + if (0 <= y && y < _outheight && v1.x < _outwidth) { if (!_mirror) { LINE(0, 0); LINE(2, 2); LINE(4, 4); LINE(6, 6); } else { |