diff options
author | David Fioramonti | 2018-05-02 05:14:05 -0700 |
---|---|---|
committer | Thierry Crozat | 2018-05-20 11:21:06 +0100 |
commit | d52937cc7e0647b1b003c84e8e8b5f508ac00a9d (patch) | |
tree | d16bc8711746b73b3ea0b4d995e3f7b4cfcb3c4f | |
parent | abb8ae09361d6a9e19383c21d65e085fa41c0d1e (diff) | |
download | scummvm-rg350-d52937cc7e0647b1b003c84e8e8b5f508ac00a9d.tar.gz scummvm-rg350-d52937cc7e0647b1b003c84e8e8b5f508ac00a9d.tar.bz2 scummvm-rg350-d52937cc7e0647b1b003c84e8e8b5f508ac00a9d.zip |
SCI: Update rad2deg usage
-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 937b1cfc2f..eb4d5d3748 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -1919,7 +1919,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((float)atan2((double)p.y, (double)p.x)); + int deg = Common::rad2deg<float,int>((float)atan2((double)p.y, (double)p.x)); if (deg < -180) deg += 360; if (deg > 180) deg -= 360; return deg; |