[Scummvm-git-logs] scummvm master -> 1c9d9ab15130b5bd916d240e1e01f0c73d26ab89

aquadran noreply at scummvm.org
Mon Oct 21 20:42:30 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:
1c9d9ab151 WINTERMUTE: Small sync with original code


Commit: 1c9d9ab15130b5bd916d240e1e01f0c73d26ab89
    https://github.com/scummvm/scummvm/commit/1c9d9ab15130b5bd916d240e1e01f0c73d26ab89
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2024-10-21T22:42:25+02:00

Commit Message:
WINTERMUTE: Small sync with original code

Changed paths:
    engines/wintermute/ad/ad_scene_geometry.cpp


diff --git a/engines/wintermute/ad/ad_scene_geometry.cpp b/engines/wintermute/ad/ad_scene_geometry.cpp
index 521cb021166..0f6a5300db4 100644
--- a/engines/wintermute/ad/ad_scene_geometry.cpp
+++ b/engines/wintermute/ad/ad_scene_geometry.cpp
@@ -439,7 +439,7 @@ float AdSceneGeometry::getHeightAt(DXVector3 pos, float tolerance, bool *intFoun
 					continue; // only fall down
 				}
 
-				if (!intFoundTmp || ABS(ret - pos._y) > ABS(intersection._y - pos._y)) {
+				if (!intFoundTmp || fabs(ret - pos._y) > fabs(intersection._y - pos._y)) {
 					ret = intersection._y;
 				}
 




More information about the Scummvm-git-logs mailing list