[Scummvm-git-logs] scummvm master -> 2ec04002253b13fc3600b0d56162458f19617fa6

mgerhardy noreply at scummvm.org
Mon Dec 27 16:34:52 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2ec0400225 TWINE: Wrong shooting direction


Commit: 2ec04002253b13fc3600b0d56162458f19617fa6
    https://github.com/scummvm/scummvm/commit/2ec04002253b13fc3600b0d56162458f19617fa6
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-12-27T17:32:33+01:00

Commit Message:
TWINE: Wrong shooting direction

the current actor rotation wasn't taken into account

fixes https://bugs.scummvm.org/ticket/13168

Changed paths:
    engines/twine/scene/animations.cpp


diff --git a/engines/twine/scene/animations.cpp b/engines/twine/scene/animations.cpp
index 82c8cf01639..f1817fa955c 100644
--- a/engines/twine/scene/animations.cpp
+++ b/engines/twine/scene/animations.cpp
@@ -288,7 +288,7 @@ void Animations::processAnimActions(int32 actorIdx) {
 			break;
 		case ActionType::ACTION_THROW_EXTRA_BONUS:
 			if (action.animFrame == actor->_animPosition) {
-				_engine->_extra->addExtraThrow(actorIdx, actor->_pos.x, actor->_pos.y + action.yHeight, actor->_pos.z, action.spriteIndex, action.xAngle, action.yAngle, action.xRotPoint, action.extraAngle, action.strength);
+				_engine->_extra->addExtraThrow(actorIdx, actor->_pos.x, actor->_pos.y + action.yHeight, actor->_pos.z, action.spriteIndex, action.xAngle, actor->_angle + action.yAngle, action.xRotPoint, action.extraAngle, action.strength);
 			}
 			break;
 		case ActionType::ACTION_THROW_MAGIC_BALL:




More information about the Scummvm-git-logs mailing list