diff options
author | Sven Hesse | 2007-07-26 03:29:45 +0000 |
---|---|---|
committer | Sven Hesse | 2007-07-26 03:29:45 +0000 |
commit | 872a1ea36970af4a5440b81ac434a4e109e9cc51 (patch) | |
tree | ad43aab573ca8ab918fd866bc9ee6c0d266762ce /engines | |
parent | b644e460aac65a7aa2770845336f5a255c1a9d72 (diff) | |
download | scummvm-rg350-872a1ea36970af4a5440b81ac434a4e109e9cc51.tar.gz scummvm-rg350-872a1ea36970af4a5440b81ac434a4e109e9cc51.tar.bz2 scummvm-rg350-872a1ea36970af4a5440b81ac434a4e109e9cc51.zip |
Fixed o1_fillRect() again
svn-id: r28209
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/inter_v1.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp index 5ea307bf28..7f5a641c1b 100644 --- a/engines/gob/inter_v1.cpp +++ b/engines/gob/inter_v1.cpp @@ -1896,7 +1896,9 @@ bool Inter_v1::o1_copySprite(OpFuncParams ¶ms) { } bool Inter_v1::o1_fillRect(OpFuncParams ¶ms) { - _vm->_draw->_destSurface = load16(); + int16 destSurf; + + _vm->_draw->_destSurface = destSurf = load16(); _vm->_draw->_destSpriteX = _vm->_parse->parseValExpr(); _vm->_draw->_destSpriteY = _vm->_parse->parseValExpr(); @@ -1905,7 +1907,7 @@ bool Inter_v1::o1_fillRect(OpFuncParams ¶ms) { _vm->_draw->_backColor = _vm->_parse->parseValExpr(); - if (!_vm->_draw->_spritesArray[_vm->_draw->_destSurface]) + if (!_vm->_draw->_spritesArray[(destSurf > 100) ? (destSurf - 80) : destSurf]) return false; if (_vm->_draw->_spriteRight < 0) { |