aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2012-10-01 03:06:59 +0300
committerFilippos Karapetis2012-10-01 03:06:59 +0300
commitf2fa6a934d838b4edb5386598d1415782e965d26 (patch)
treeff518b8c4d643d5f500e5e2adcfef832b0ed3ab9 /engines
parent4ad86e0c11f1b6b6a7a4b4b1a065017e6f656501 (diff)
downloadscummvm-rg350-f2fa6a934d838b4edb5386598d1415782e965d26.tar.gz
scummvm-rg350-f2fa6a934d838b4edb5386598d1415782e965d26.tar.bz2
scummvm-rg350-f2fa6a934d838b4edb5386598d1415782e965d26.zip
SCI: Fix compilation with MSVC (atan2() was ambiguous)
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kpathing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index ee65d5955d..4061795f82 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -1912,7 +1912,7 @@ static int intersectDir(const Vertex *v1, const Vertex *v2) {
// Direction of edge in degrees from pos. x-axis, between -180 and 180
static int edgeDir(const Vertex *v) {
Common::Point p = v->_next->v - v->v;
- int deg = (int)Common::rad2deg(atan2(p.y, p.x));
+ int deg = (int)Common::rad2deg(atan2((double)p.y, (double)p.x));
if (deg < -180) deg += 360;
if (deg > 180) deg -= 360;
return deg;