[Scummvm-cvs-logs] SF.net SVN: scummvm: [28209] scummvm/trunk/engines/gob/inter_v1.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Thu Jul 26 05:29:45 CEST 2007


Revision: 28209
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28209&view=rev
Author:   drmccoy
Date:     2007-07-25 20:29:45 -0700 (Wed, 25 Jul 2007)

Log Message:
-----------
Fixed o1_fillRect() again

Modified Paths:
--------------
    scummvm/trunk/engines/gob/inter_v1.cpp

Modified: scummvm/trunk/engines/gob/inter_v1.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v1.cpp	2007-07-26 03:17:54 UTC (rev 28208)
+++ scummvm/trunk/engines/gob/inter_v1.cpp	2007-07-26 03:29:45 UTC (rev 28209)
@@ -1896,8 +1896,10 @@
 }
 
 bool Inter_v1::o1_fillRect(OpFuncParams &params) {
-	_vm->_draw->_destSurface = load16();
+	int16 destSurf;
 
+	_vm->_draw->_destSurface = destSurf = load16();
+
 	_vm->_draw->_destSpriteX = _vm->_parse->parseValExpr();
 	_vm->_draw->_destSpriteY = _vm->_parse->parseValExpr();
 	_vm->_draw->_spriteRight = _vm->_parse->parseValExpr();
@@ -1905,7 +1907,7 @@
 
 	_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) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list