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

neuromancer noreply at scummvm.org
Fri Nov 17 12:26:10 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:
f7c572a735 FREESCAPE: avoid truncation from double to float


Commit: f7c572a735355d9333b972443f06c026ba0b3227
    https://github.com/scummvm/scummvm/commit/f7c572a735355d9333b972443f06c026ba0b3227
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2023-11-17T13:26:04+01:00

Commit Message:
FREESCAPE: avoid truncation from double to float

Changed paths:
    engines/freescape/gfx_opengl.cpp


diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index 53ba4d9990a..736eed47e28 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.0f * 3.1416;
+	float twicePi = 2 * 3.1416;
 	float coef = (9 - frame) / 9.0;
 	float radius = (1 - coef) * 4.0;
 




More information about the Scummvm-git-logs mailing list