From 6e01e7603b219aa52ba77eb2772c55467aed3267 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Tue, 2 Mar 2021 17:53:56 +0100 Subject: [PATCH] TWINE: corrected angle in Collision::checkCollisionWithActors according to disassembly --- engines/twine/scene/collision.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/twine/scene/collision.cpp b/engines/twine/scene/collision.cpp index b69165f8e78..baac84b29e5 100644 --- a/engines/twine/scene/collision.cpp +++ b/engines/twine/scene/collision.cpp @@ -370,7 +370,7 @@ int32 Collision::checkCollisionWithActors(int32 actorIdx) { const int32 zRightTest = actorTest->pos.z + actorTest->boudingBox.z.topRight; if (xLeft < xRightTest && xRight > xLeftTest && yLeft < yRightTest && yRight > yLeftTest && zLeft < zRightTest && zRight > zLeftTest) { - _engine->_actor->hitActor(actorIdx, a, actor->strengthOfHit, actor->angle + ANGLE_90); + _engine->_actor->hitActor(actorIdx, a, actor->strengthOfHit, actor->angle + ANGLE_180); actor->dynamicFlags.bIsHitting = 0; } }