diff -ur ScummVM-cvs20021116/scummvm/scumm/costume.cpp ScummVM-cvs20021116+hack/scummvm/scumm/costume.cpp
old
|
new
|
|
584 | 584 | _scaleIndexX = t + _scaleIndexXStep; |
585 | 585 | if (cost_scaleTable[t] < _scaleX) { |
586 | 586 | _xpos += _scaleIndexXStep; |
587 | | if (_xpos >= _vm->_realWidth) |
| 587 | if (_xpos < 0 || _xpos >= _vm->_realWidth) |
588 | 588 | return; |
589 | 589 | maskbit = revBitMask[_xpos & 7]; |
590 | 590 | _backbuff_ptr += _scaleIndexXStep; |
… |
… |
|
646 | 646 | _scaleIndexX = t + _scaleIndexXStep; |
647 | 647 | if (cost_scaleTable[t] < _scaleX) { |
648 | 648 | _xpos += _scaleIndexXStep; |
649 | | if (_xpos >= _vm->_realWidth) |
| 649 | if (_xpos < 0 || _xpos >= _vm->_realWidth) |
650 | 650 | return; |
651 | 651 | maskbit = revBitMask[_xpos & 7]; |
652 | 652 | _backbuff_ptr += _scaleIndexXStep; |
… |
… |
|
707 | 707 | _scaleIndexX = t + _scaleIndexXStep; |
708 | 708 | if (cost_scaleTable[t] < _scaleX) { |
709 | 709 | _xpos += _scaleIndexXStep; |
710 | | if (_xpos >= _vm->_realWidth) |
| 710 | if (_xpos < 0 || _xpos >= _vm->_realWidth) |
711 | 711 | return; |
712 | 712 | _backbuff_ptr += _scaleIndexXStep; |
713 | 713 | } |
… |
… |
|
1180 | 1180 | _scaleIndexX = t + _scaleIndexXStep; |
1181 | 1181 | if (cost_scaleTable[t] < _scaleX) { |
1182 | 1182 | _xpos += _scaleIndexXStep; |
1183 | | if (_xpos >= _vm->_realWidth) |
| 1183 | if (_xpos < 0 || _xpos >= _vm->_realWidth) |
1184 | 1184 | return; |
1185 | 1185 | maskbit = revBitMask[_xpos & 7]; |
1186 | 1186 | _backbuff_ptr += _scaleIndexXStep; |