[Scummvm-git-logs] scummvm master -> 5f0697560d2d6bbdae9897317f1f629091b2ac32

aquadran noreply at scummvm.org
Mon Oct 14 05:23:33 UTC 2024


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:
5f0697560d WINTERMUTE: Small simplification in BaseObject::getMatrix


Commit: 5f0697560d2d6bbdae9897317f1f629091b2ac32
    https://github.com/scummvm/scummvm/commit/5f0697560d2d6bbdae9897317f1f629091b2ac32
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-14T07:23:28+02:00

Commit Message:
WINTERMUTE: Small simplification in BaseObject::getMatrix

Changed paths:
    engines/wintermute/base/base_object.cpp


diff --git a/engines/wintermute/base/base_object.cpp b/engines/wintermute/base/base_object.cpp
index 144c86bd09f..0718ae1c00f 100644
--- a/engines/wintermute/base/base_object.cpp
+++ b/engines/wintermute/base/base_object.cpp
@@ -1374,9 +1374,8 @@ bool BaseObject::getMatrix(Math::Matrix4 *model, Math::Vector3d *pos) {
 		pos = &_posVector;
 	}
 	DXVector3 posVect = DXVector3(pos->x(), pos->y(), pos->z());
-	Math::Matrix4 m = *model;
-	m.transpose();
-	DXMatrix modelMatrix = DXMatrix(m.getData());
+	model->transpose();
+	DXMatrix modelMatrix = DXMatrix(model->getData());
 
 	DXMatrix matRot, matScale, matTrans;
 	DXMatrixRotationYawPitchRoll(&matRot, degToRad(_angle), 0, 0);




More information about the Scummvm-git-logs mailing list