diff options
| -rw-r--r-- | scumm/actor.cpp | 2 | ||||
| -rw-r--r-- | scumm/akos.cpp | 4 | ||||
| -rw-r--r-- | scumm/object.cpp | 5 | ||||
| -rw-r--r-- | scumm/script_v8.cpp | 11 | 
4 files changed, 15 insertions, 7 deletions
| diff --git a/scumm/actor.cpp b/scumm/actor.cpp index d78536cc6c..43b9cd1731 100644 --- a/scumm/actor.cpp +++ b/scumm/actor.cpp @@ -1223,7 +1223,7 @@ void Actor::startWalkAnim(int cmd, int angle)  	 */  #if 0  	if (walk_script != 0) { -		int16 args[16]; +		int args[16];  		args[0] = number;  		args[1] = cmd;  		args[2] = angle; diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 47d303a0c8..1afc53b394 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -792,8 +792,8 @@ void AkosRenderer::codec1()  	masking = false;  	if (clipping) {  		masking = _vm->isMaskActiveAt(x_left, y_top, x_right, y_bottom, -																	_vm->getResourceAddress(rtBuffer, 9) + -																	_vm->gdi._imgBufOffs[clipping] + _vm->_screenStartStrip) != 0; +		                _vm->getResourceAddress(rtBuffer, 9) + +		                _vm->gdi._imgBufOffs[clipping] + _vm->_screenStartStrip) != 0;  	}  	v1.mask_ptr = NULL; diff --git a/scumm/object.cpp b/scumm/object.cpp index bf2676f6cc..22b1b68155 100644 --- a/scumm/object.cpp +++ b/scumm/object.cpp @@ -266,9 +266,8 @@ int Scumm::findObject(int x, int y)  			a = _objs[b].parentstate;  			b = _objs[b].parent;  			if (b == 0) { -				if (_objs[i].x_pos <= x && -						_objs[i].width + _objs[i].x_pos > x && -						_objs[i].y_pos <= y && _objs[i].height + _objs[i].y_pos > y) +				if (_objs[i].x_pos <= x && _objs[i].width + _objs[i].x_pos > x && +				    _objs[i].y_pos <= y && _objs[i].height + _objs[i].y_pos > y)  					return _objs[i].obj_nr;  				break;  			} diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index 544a153f67..53015d6361 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1456,12 +1456,21 @@ void Scumm_v8::o6_kernelGetFunctions()  	case 0xCE:		// getRGBSlot  	case 0xD3:		// getKeyState  	case 0xD7:		// getBox +		push(0); +		warning("o6_kernelGetFunctions: default case %d (len = %d)", args[0], len); +		break;  	case 0xD8:		// findBlastObject +		// FIXME - this is WRONG and just a temporary hack +		push(findObject(args[1], args[2])); +		break;  	case 0xD9:		// actorHit +		push(0); +		warning("o6_kernelGetFunctions: default case %d (len = %d)", args[0], len); +		break;  	case 0xDA:		// lipSyncWidth  	case 0xDB:		// lipSyncHeight  	case 0xDC:		// actorTalkAnimation -		// FIXME - hack! +		// TODO - these methods are for lip syncing. Not so important right now, though  		push(0);  		break;  	case 0xDD:		// getMasterSFXVol | 
