[Scummvm-git-logs] scummvm master -> 17a218bfd9d36568bc4d61370973f2b07f97b74d

mgerhardy noreply at scummvm.org
Fri Dec 31 11:21:36 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:
17a218bfd9 TWINE: use a different version of getAngleAndSetTargetActorDistance


Commit: 17a218bfd9d36568bc4d61370973f2b07f97b74d
    https://github.com/scummvm/scummvm/commit/17a218bfd9d36568bc4d61370973f2b07f97b74d
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-12-31T12:13:16+01:00

Commit Message:
TWINE: use a different version of getAngleAndSetTargetActorDistance

Changed paths:
    engines/twine/script/script_move_v1.cpp


diff --git a/engines/twine/script/script_move_v1.cpp b/engines/twine/script/script_move_v1.cpp
index 11eb6e41a27..ba09b68e8f3 100644
--- a/engines/twine/script/script_move_v1.cpp
+++ b/engines/twine/script/script_move_v1.cpp
@@ -237,7 +237,7 @@ static int32 mGOTO_SYM_POINT(TwinEEngine *engine, MoveScriptContext &ctx) {
 	engine->_scene->_currentScriptValue = ctx.stream.readByte();
 
 	const IVec3 &sp = engine->_scene->_sceneTracks[engine->_scene->_currentScriptValue];
-	const int32 newAngle = ANGLE_180 + engine->_movements->getAngleAndSetTargetActorDistance(ctx.actor->_pos.x, ctx.actor->_pos.z, sp.x, sp.z);
+	const int32 newAngle = ANGLE_180 + engine->_movements->getAngleAndSetTargetActorDistance(ctx.actor->_pos, sp);
 
 	if (ctx.actor->_staticFlags.bIsSpriteActor) {
 		ctx.actor->_angle = newAngle;




More information about the Scummvm-git-logs mailing list