fix / hack for actor costume gfx glitches in scumm v1 games

svn-id: r11355
This commit is contained in:
Paweł Kołodziejski 2003-11-23 07:59:45 +00:00
parent c4882e8f88
commit 8ddc52e9b5

View File

@ -200,7 +200,11 @@ byte CostumeRenderer::mainRoutine(int xmoveCur, int ymoveCur) {
v1.skip_width = _width;
v1.scaleXstep = _mirror ? 1 : -1;
_vm->updateDirtyRect(0, x_left, x_right + 1, y_top, y_bottom, _dirty_id);
if (_vm->_version == 1)
//HACK: it fix gfx glitches leaved by actor costume in V1 games, when actor moving to left
_vm->updateDirtyRect(0, x_left, x_right + 8, y_top, y_bottom, _dirty_id);
else
_vm->updateDirtyRect(0, x_left, x_right + 1, y_top, y_bottom, _dirty_id);
if (y_top >= (int)_outheight || y_bottom <= 0)
return 0;