Removes the approximations cheap_pythag and cheap_hypotenuse, since they're anything *but* cheap

This commit is contained in:
GinjaNinja32
2015-07-09 16:25:47 +01:00
parent 5812622524
commit f3d09e092e
4 changed files with 4 additions and 22 deletions

View File

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