[Scummvm-git-logs] scummvm master -> 583cf69cd22bf56a83f15813c87e423facc94257
aquadran
noreply at scummvm.org
Sat Jun 25 22:30:56 UTC 2022
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:
583cf69cd2 WINTERMUTE: WME3D: Use correct vector length function
Commit: 583cf69cd22bf56a83f15813c87e423facc94257
https://github.com/scummvm/scummvm/commit/583cf69cd22bf56a83f15813c87e423facc94257
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-06-26T00:30:52+02:00
Commit Message:
WINTERMUTE: WME3D: Use correct vector length function
Changed paths:
engines/wintermute/ad/ad_actor_3dx.cpp
diff --git a/engines/wintermute/ad/ad_actor_3dx.cpp b/engines/wintermute/ad/ad_actor_3dx.cpp
index d3251ce8977..9410b1192d0 100644
--- a/engines/wintermute/ad/ad_actor_3dx.cpp
+++ b/engines/wintermute/ad/ad_actor_3dx.cpp
@@ -698,7 +698,7 @@ void AdActor3DX::getNextStep2D() {
origVec = currentPoint - _posVector;
newVec = currentPoint - newPos;
- if (origVec.getSquareMagnitude() < newVec.getSquareMagnitude()) {
+ if (origVec.length() < newVec.length()) {
_posVector = currentPoint;
if (_path2D->getNext() == nullptr) {
More information about the Scummvm-git-logs
mailing list