Forgot get_dist uses Chebyshev's metric too.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1517 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
uporotiy
2011-05-02 12:58:36 +00:00
parent a2f55ddf6c
commit 1fd070c908
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impa
exTurfs += T
for(var/turf/T in exTurfs)
var/distance = get_dist(epicenter, T)
var/distance = 0
if(roundExplosions)
distance = get_dist_euclidian(epicenter, T)
else
distance = get_dist(epicenter, T)
if(distance < 0)
distance = 0
if(distance < devastation_range)