[Scummvm-git-logs] scummvm master -> 6b9b4d7734b05d444f8e2f99995b967cfe471a5c

digitall noreply at scummvm.org
Wed Sep 6 22:33:47 UTC 2023


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:
6b9b4d7734 HPL1: Fix Spelling in Callback Naming in Newton Library


Commit: 6b9b4d7734b05d444f8e2f99995b967cfe471a5c
    https://github.com/scummvm/scummvm/commit/6b9b4d7734b05d444f8e2f99995b967cfe471a5c
Author: D G Turner (digitall at scummvm.org)
Date: 2023-09-06T23:33:15+01:00

Commit Message:
HPL1: Fix Spelling in Callback Naming in Newton Library

No functional change.

Changed paths:
    engines/hpl1/engine/libraries/newton/NewtonClass.cpp
    engines/hpl1/engine/libraries/newton/physics/dgConstraint.h


diff --git a/engines/hpl1/engine/libraries/newton/NewtonClass.cpp b/engines/hpl1/engine/libraries/newton/NewtonClass.cpp
index b3c8f0f7e65..0acd6bb8088 100644
--- a/engines/hpl1/engine/libraries/newton/NewtonClass.cpp
+++ b/engines/hpl1/engine/libraries/newton/NewtonClass.cpp
@@ -266,8 +266,6 @@ void NewtonUserJoint::GetInfo(dgConstraintInfo *const info) const {
 	}
 }
 
-void NewtonUserJoint::SetUpdateFeedbackFunction(
-    NewtonUserBilateralCallBack getFeedback) {
-	dgUserConstraint::SetUpdateFeedbackFunction(
-	    (ConstraintsForceFeeback) getFeedback);
+void NewtonUserJoint::SetUpdateFeedbackFunction(NewtonUserBilateralCallBack getFeedback) {
+	dgUserConstraint::SetUpdateFeedbackFunction((ConstraintsForceFeedback)getFeedback);
 }
diff --git a/engines/hpl1/engine/libraries/newton/physics/dgConstraint.h b/engines/hpl1/engine/libraries/newton/physics/dgConstraint.h
index de87fbfd317..6ba5752a106 100644
--- a/engines/hpl1/engine/libraries/newton/physics/dgConstraint.h
+++ b/engines/hpl1/engine/libraries/newton/physics/dgConstraint.h
@@ -43,7 +43,7 @@ class dgWorld;
 class dgConstraint;
 class dgBilateralBounds;
 
-typedef void(dgApi *ConstraintsForceFeeback)(const NewtonJoint *const userJoint, dFloat timestep, int32 threadIndex);
+typedef void(dgApi *ConstraintsForceFeedback)(const NewtonJoint *const userJoint, dFloat timestep, int32 threadIndex);
 
 class dgConstraintInfo {
 public:
@@ -215,7 +215,7 @@ protected:
 
 	virtual void JointVelocityCorrection(const dgJointAccelerationDecriptor &params) = 0;
 
-	void SetUpdateFeedbackFunction(ConstraintsForceFeeback function);
+	void SetUpdateFeedbackFunction(ConstraintsForceFeedback function);
 	void InitPointParam(dgPointParam &param, dgFloat32 stiffness, const dgVector &p0Global, const dgVector &p1Global) const;
 
 
@@ -226,7 +226,7 @@ protected:
 	dgBody *m_body1;
 	dgBodyMasterListRow::dgListNode *m_link0;
 	dgBodyMasterListRow::dgListNode *m_link1;
-	ConstraintsForceFeeback m_updaFeedbackCallback;
+	ConstraintsForceFeedback m_updaFeedbackCallback;
 	dgUnsigned32 m_dynamicsLru;
 
 	dgUnsigned32 m_index            : 16;
@@ -265,7 +265,7 @@ inline dgConstraint::dgConstraint() {
 inline dgConstraint::~dgConstraint() {
 }
 
-inline void dgConstraint::SetUpdateFeedbackFunction(ConstraintsForceFeeback function) {
+inline void dgConstraint::SetUpdateFeedbackFunction(ConstraintsForceFeedback function) {
 	m_updaFeedbackCallback = function;
 }
 




More information about the Scummvm-git-logs mailing list