[Scummvm-git-logs] scummvm master -> bafd1a3d8f7e100298df7c18056af008f63856c9

sev- noreply at scummvm.org
Tue Feb 10 17:34:57 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
bafd1a3d8f BLADERUNNER: Drop 'long double' usage


Commit: bafd1a3d8f7e100298df7c18056af008f63856c9
    https://github.com/scummvm/scummvm/commit/bafd1a3d8f7e100298df7c18056af008f63856c9
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2026-02-10T18:34:52+01:00

Commit Message:
BLADERUNNER: Drop 'long double' usage

The 128-bit precision seems unnecessary here, and, on some archs and
compilers (e.g. RISC-V), the 'long double' requirement would rely on
much more costly operations (looking at the Godbolt Compiler Explorer).

(Found while trying to port ScummVM 2.5.1 to OSX 10.3, where 'long
double' was not fully implemented, and where GCC 3.3 had a special
-Wlong-double flag detecting its use.)

Changed paths:
    engines/bladerunner/script/police_maze.cpp


diff --git a/engines/bladerunner/script/police_maze.cpp b/engines/bladerunner/script/police_maze.cpp
index e1c69da3c43..07b3cb8dd10 100644
--- a/engines/bladerunner/script/police_maze.cpp
+++ b/engines/bladerunner/script/police_maze.cpp
@@ -227,7 +227,7 @@ void PoliceMazeTargetTrack::add(int trackId, float startX, float startY, float s
 		_pointCount = steps;
 		_dataIndex = 0;
 
-		double coef = 1.0f / (long double)steps;
+		double coef = 1.0 / steps;
 
 		double coefX = (endX - startX) * coef;
 		double coefY = (endY - startY) * coef;




More information about the Scummvm-git-logs mailing list