[Scummvm-git-logs] scummvm master -> 357a4c346056973571a03a483b0ec6e3af507da7

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


Commit: 357a4c346056973571a03a483b0ec6e3af507da7
    https://github.com/scummvm/scummvm/commit/357a4c346056973571a03a483b0ec6e3af507da7
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-08-30T22:04:41+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