aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2014-01-01 23:54:11 +0200
committerFilippos Karapetis2014-01-01 23:54:50 +0200
commit95c17e293ea6ff1f076044979636d680ebf41419 (patch)
tree2347274dab42fc8668a759c9f7a1f32ed4e2688b
parent485807a4da1f8c2b04a75fac5d48ce39617eea85 (diff)
downloadscummvm-rg350-95c17e293ea6ff1f076044979636d680ebf41419.tar.gz
scummvm-rg350-95c17e293ea6ff1f076044979636d680ebf41419.tar.bz2
scummvm-rg350-95c17e293ea6ff1f076044979636d680ebf41419.zip
FULLPIPE: Fix compilation with MSVC (ambiguous call to sqrt())
-rw-r--r--engines/fullpipe/scenes/scene14.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index b31dc89d31..4a09bc9cb6 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);