diff -ur ScummVM-cvs20021116/scummvm/scumm/akos.cpp ScummVM-cvs20021116+hack/scummvm/scumm/akos.cpp
old
|
new
|
|
319 | 319 | |
320 | 320 | if (v1.scaletable[v1.tmp_x] < scale_x) { |
321 | 321 | v1.x += v1.scaleXstep; |
322 | | if (v1.x >= _vm->_realWidth) |
| 322 | if (v1.x < 0 || v1.x >= _vm->_realWidth) |
323 | 323 | return; |
324 | 324 | maskbit = revBitMask[v1.x & 7]; |
325 | 325 | v1.destptr += v1.scaleXstep; |
… |
… |
|
387 | 387 | |
388 | 388 | if (v1.scaletable[v1.tmp_x] < scale_x) { |
389 | 389 | v1.x += v1.scaleXstep; |
390 | | if (v1.x >= _vm->_realWidth) |
| 390 | if (v1.x < 0 || v1.x >= _vm->_realWidth) |
391 | 391 | return; |
392 | 392 | maskbit = revBitMask[v1.x & 7]; |
393 | 393 | v1.destptr += v1.scaleXstep; |
… |
… |
|
463 | 463 | |
464 | 464 | if (v1.scaletable[v1.tmp_x] < scale_x) { |
465 | 465 | v1.x += v1.scaleXstep; |
466 | | if (v1.x >= _vm->_realWidth) |
| 466 | if (v1.x < 0 || v1.x >= _vm->_realWidth) |
467 | 467 | return; |
468 | 468 | maskbit = revBitMask[v1.x & 7]; |
469 | 469 | v1.destptr += v1.scaleXstep; |