From 95c17e293ea6ff1f076044979636d680ebf41419 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 1 Jan 2014 23:54:11 +0200 Subject: FULLPIPE: Fix compilation with MSVC (ambiguous call to sqrt()) --- engines/fullpipe/scenes/scene14.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') 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); -- cgit v1.2.3