[Scummvm-git-logs] scummvm master -> c4b63a694d40670a1da0df5b228005a0711051da
mduggan
noreply at scummvm.org
Sat Nov 18 12:04:28 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:
c4b63a694d FREESCAPE: Add explicit float cast to make MSVC happy
Commit: c4b63a694d40670a1da0df5b228005a0711051da
https://github.com/scummvm/scummvm/commit/c4b63a694d40670a1da0df5b228005a0711051da
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2023-11-18T22:59:01+11:00
Commit Message:
FREESCAPE: Add explicit float cast to make MSVC happy
Changed paths:
engines/freescape/gfx_opengl.cpp
diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index 2ac513fd830..5de09272bf8 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.f * M_PI;
+ float twicePi = (float)(2.0 * M_PI);
float coef = (9 - frame) / 9.0;
float radius = (1 - coef) * 4.0;
More information about the Scummvm-git-logs
mailing list