[Scummvm-git-logs] scummvm branch-2-3 -> fcf26fda8cb2d18448fbbb2b076d5c66248a7aff

mgerhardy martin.gerhardy at gmail.com
Tue Aug 31 06:54:54 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:
fcf26fda8c TWINE: fixed issue #12842 (model is sliding when idling)


Commit: fcf26fda8cb2d18448fbbb2b076d5c66248a7aff
    https://github.com/scummvm/scummvm/commit/fcf26fda8cb2d18448fbbb2b076d5c66248a7aff
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-08-31T08:54:50+02:00

Commit Message:
TWINE: fixed issue #12842 (model is sliding when idling)

Changed paths:
    engines/twine/renderer/renderer.cpp


diff --git a/engines/twine/renderer/renderer.cpp b/engines/twine/renderer/renderer.cpp
index c4ba642163..2d7c2ece4a 100644
--- a/engines/twine/renderer/renderer.cpp
+++ b/engines/twine/renderer/renderer.cpp
@@ -336,9 +336,9 @@ void Renderer::processRotatedElement(IMatrix3x3 *targetMatrix, const Common::Arr
 void Renderer::applyPointsTranslation(const Common::Array<BodyVertex> &vertices, int32 firstPoint, int32 numPoints, I16Vec3 *destPoints, const IMatrix3x3 *translationMatrix, const IVec3 &angleVec, const IVec3 &destPos) {
 	for (int32 i = 0; i < numPoints; ++i) {
 		const BodyVertex &vertex = vertices[i + firstPoint];
-		const int32 tmpX = vertex.x + angleVec.z;
+		const int32 tmpX = vertex.x + angleVec.x;
 		const int32 tmpY = vertex.y + angleVec.y;
-		const int32 tmpZ = vertex.z + angleVec.x;
+		const int32 tmpZ = vertex.z + angleVec.z;
 
 		destPoints->x = ((translationMatrix->row1.x * tmpX + translationMatrix->row1.y * tmpY + translationMatrix->row1.z * tmpZ) / SCENE_SIZE_HALF) + destPos.x;
 		destPoints->y = ((translationMatrix->row2.x * tmpX + translationMatrix->row2.y * tmpY + translationMatrix->row2.z * tmpZ) / SCENE_SIZE_HALF) + destPos.y;




More information about the Scummvm-git-logs mailing list