mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-15 10:13:03 +01:00
remove ATAN2 define
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
continue
|
||||
if(!O.scannable)
|
||||
continue
|
||||
var/bearing = round(90 - ATAN2(O.x - linked.x, O.y - linked.y),5)
|
||||
var/bearing = round(90 - arctan(O.x - linked.x, O.y - linked.y),5)
|
||||
if(bearing < 0)
|
||||
bearing += 360
|
||||
contacts.Add(list(list("name"=O.name, "ref"="\ref[O]", "bearing"=bearing)))
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
|
||||
// Get heading in degrees (like a compass heading)
|
||||
/obj/effect/overmap/visitable/ship/proc/get_heading_degrees()
|
||||
return (ATAN2(speed[2], speed[1]) + 360) % 360 // Yes ATAN2(y, x) is correct to get clockwise degrees
|
||||
return (arctan(speed[2], speed[1]) + 360) % 360 // Yes arctan(y, x) is correct to get clockwise degrees
|
||||
|
||||
/obj/effect/overmap/visitable/ship/proc/adjust_speed(n_x, n_y)
|
||||
var/old_still = is_still()
|
||||
|
||||
Reference in New Issue
Block a user