diff options
author | Johannes Schickel | 2014-06-02 01:00:15 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-02 01:00:15 +0200 |
commit | 2bd2db10aa96c7d6ee17f4132ee6d317ccc6cf62 (patch) | |
tree | b4318132d6ab376a86c180f8a958470fd43832e3 | |
parent | bab02dd42b31995a7385610a91c85241547e2512 (diff) | |
download | scummvm-rg350-2bd2db10aa96c7d6ee17f4132ee6d317ccc6cf62.tar.gz scummvm-rg350-2bd2db10aa96c7d6ee17f4132ee6d317ccc6cf62.tar.bz2 scummvm-rg350-2bd2db10aa96c7d6ee17f4132ee6d317ccc6cf62.zip |
SCI: Silence double to float conversion warning.
-rw-r--r-- | engines/sci/engine/kpathing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index 940bd38adb..67d814b86f 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -1921,7 +1921,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((double)p.y, (double)p.x)); + int deg = (int)Common::rad2deg((float)atan2((double)p.y, (double)p.x)); if (deg < -180) deg += 360; if (deg > 180) deg -= 360; return deg; |