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

bluegr noreply at scummvm.org
Tue Oct 7 00:09:19 UTC 2025


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:
df660637c5 FREESCAPE: Fix compilation with MSVC


Commit: df660637c540b845a1ab567704ae0a05e695f191
    https://github.com/scummvm/scummvm/commit/df660637c540b845a1ab567704ae0a05e695f191
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2025-10-07T03:08:34+03:00

Commit Message:
FREESCAPE: Fix compilation with MSVC

Fixes error C4305: truncation from double to float

Changed paths:
    engines/freescape/movement.cpp


diff --git a/engines/freescape/movement.cpp b/engines/freescape/movement.cpp
index 7a3284e06b6..0f18e1a09bb 100644
--- a/engines/freescape/movement.cpp
+++ b/engines/freescape/movement.cpp
@@ -229,7 +229,7 @@ void FreescapeEngine::shoot() {
 	float ndcY = 1.0f - (2.0f * (_crossairPosition.y - _viewArea.top) / _viewArea.height());
 
 	// Calculate angular offsets using perspective projection
-	float fovHorizontalRad = 75.0f * M_PI / 180.0f;
+	float fovHorizontalRad = (float)(75.0f * M_PI / 180.0f);
 	float aspectRatio = isCastle() ? 1.6 : 2.18;
 	float fovVerticalRad = 2.0f * atan(tan(fovHorizontalRad / 2.0f) / aspectRatio);
 




More information about the Scummvm-git-logs mailing list