[Scummvm-cvs-logs] scummvm master -> 95c17e293ea6ff1f076044979636d680ebf41419
bluegr
bluegr at gmail.com
Wed Jan 1 22:55:31 CET 2014
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:
95c17e293e FULLPIPE: Fix compilation with MSVC (ambiguous call to sqrt())
Commit: 95c17e293ea6ff1f076044979636d680ebf41419
https://github.com/scummvm/scummvm/commit/95c17e293ea6ff1f076044979636d680ebf41419
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2014-01-01T13:54:50-08:00
Commit Message:
FULLPIPE: Fix compilation with MSVC (ambiguous call to sqrt())
Changed paths:
engines/fullpipe/scenes/scene14.cpp
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index b31dc89..4a09bc9 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -407,7 +407,7 @@ void sceneHandler14_declineCallback(int *arg) {
Common::Point point;
if (g_vars->scene14_dudeIsKicking) {
- *arg = (int)(sqrt((g_fp->_mouseVirtY - g_vars->scene14_mouseCursorPos.y)
+ *arg = (int)(sqrt((double)(g_fp->_mouseVirtY - g_vars->scene14_mouseCursorPos.y)
* (g_fp->_mouseVirtY - g_vars->scene14_mouseCursorPos.y)
+ (g_fp->_mouseVirtX - g_vars->scene14_mouseCursorPos.x)
* (g_fp->_mouseVirtX - g_vars->scene14_mouseCursorPos.x)) * 0.1);
More information about the Scummvm-git-logs
mailing list