Merge pull request #4381 from Tastyfish/macros-macros-everywhere

Some math, mob helper, etc one-liner optimizations
This commit is contained in:
TheDZD
2016-05-09 19:07:13 -04:00
11 changed files with 156 additions and 345 deletions
+2 -2
View File
@@ -89,7 +89,7 @@
var/turf/T = A
if(!T)
continue
var/dist = cheap_hypotenuse(T.x, T.y, x0, y0)
var/dist = hypotenuse(T.x, T.y, x0, y0)
if(config.reactionary_explosions)
var/turf/Trajectory = T
@@ -206,7 +206,7 @@
var/list/wipe_colours = list()
for(var/turf/T in spiral_range_turfs(max_range, epicenter))
wipe_colours += T
var/dist = cheap_hypotenuse(T.x, T.y, x0, y0)
var/dist = hypotenuse(T.x, T.y, x0, y0)
if(newmode == "Yes")
var/turf/TT = T