Fix for bug #1021538 (COMI: Graphic glitches in ship-to-ship fight)

svn-id: r14876
This commit is contained in:
Max Horn 2004-09-03 19:54:58 +00:00
parent 54a84da97c
commit 054460a170
3 changed files with 33 additions and 25 deletions

View file

@ -1402,20 +1402,7 @@ void ScummEngine_v8::o8_kernelGetFunctions() {
case 0xD9: { // actorHit - used, for example, to detect ship collision
// during ship-to-ship combat.
Actor *a = derefActor(args[1], "actorHit");
AkosRenderer *ar = (AkosRenderer *) _costumeRenderer;
bool old_need_redraw = a->needRedraw;
ar->_actorHitX = args[2];
ar->_actorHitY = args[3] + _screenTop;
ar->_actorHitMode = true;
ar->_actorHitResult = false;
a->needRedraw = true;
a->drawActorCostume();
a->needRedraw = old_need_redraw;
ar->_actorHitMode = false;
push(ar->_actorHitResult);
push(a->actorHitTest(args[2], args[3] + _screenTop));
break;
}
case 0xDA: // lipSyncWidth