mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 01:00:48 +00:00
SCI: Silence double to float conversion warning.
This commit is contained in:
parent
bab02dd42b
commit
2bd2db10aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user