mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Removes the approximations cheap_pythag and cheap_hypotenuse, since they're anything *but* cheap
This commit is contained in:
@@ -115,7 +115,7 @@ datum/light_source
|
||||
dist = 0
|
||||
else
|
||||
#ifdef LIGHTING_CIRCULAR
|
||||
dist = cheap_hypotenuse(A.x, A.y, __x, __y)
|
||||
dist = sqrt((A.x - __x)**2 + (A.y - __y)**2)
|
||||
#else
|
||||
dist = max(abs(A.x - __x), abs(A.y - __y))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user