[Scummvm-git-logs] scummvm master -> 0b18ad7dd4bc5e42b6b0c0d25fa98b87860a68a2
aquadran
noreply at scummvm.org
Sat Jul 2 20:31:36 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:
0b18ad7dd4 WINTERMUTE: WME3D: Use correct function for vector length
Commit: 0b18ad7dd4bc5e42b6b0c0d25fa98b87860a68a2
https://github.com/scummvm/scummvm/commit/0b18ad7dd4bc5e42b6b0c0d25fa98b87860a68a2
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-07-02T22:31:32+02:00
Commit Message:
WINTERMUTE: WME3D: Use correct function for vector length
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 f302efc747d..1f9c632b461 100644
--- a/engines/wintermute/ad/ad_actor_3dx.cpp
+++ b/engines/wintermute/ad/ad_actor_3dx.cpp
@@ -637,7 +637,7 @@ void AdActor3DX::getNextStep3D() {
newVec = *currentPos - newPos;
}
- if (currentPos == nullptr || origVec.getSquareMagnitude() < newVec.getSquareMagnitude()) {
+ if (currentPos == nullptr || origVec.length() < newVec.length()) {
if (currentPos != nullptr) {
_posVector = *currentPos;
}
More information about the Scummvm-git-logs
mailing list