SCI: Silence double to float conversion warning.

This commit is contained in:
Johannes Schickel 2014-06-02 01:00:15 +02:00
parent bab02dd42b
commit 2bd2db10aa

View File

@ -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;