[Scummvm-git-logs] scummvm master -> 7421d3be17f19fc56af16be89967b44f26c4b79b

neuromancer noreply at scummvm.org
Fri Nov 17 14:47:21 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:
7421d3be17 FREESCAPE: avoid truncation from double to float (again)


Commit: 7421d3be17f19fc56af16be89967b44f26c4b79b
    https://github.com/scummvm/scummvm/commit/7421d3be17f19fc56af16be89967b44f26c4b79b
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-11-17T15:47:07+01:00

Commit Message:
FREESCAPE: avoid truncation from double to float (again)

Changed paths:
    engines/freescape/gfx_opengl.cpp


diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index 736eed47e28..e74fec371e0 100644
--- a/engines/freescape/gfx_opengl.cpp
+++ b/engines/freescape/gfx_opengl.cpp
@@ -299,7 +299,7 @@ void OpenGLRenderer::renderPlayerShootBall(byte color, const Common::Point posit
 
 	glColor3ub(r, g, b);
 	int triangleAmount = 20;
-	float twicePi = 2 * 3.1416;
+	float twicePi = 2.f * 3.1416f;
 	float coef = (9 - frame) / 9.0;
 	float radius = (1 - coef) * 4.0;
 




More information about the Scummvm-git-logs mailing list