From 106018ca3be726fea729a7a49e2c26a786d51ed1 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 16 Feb 2013 19:00:49 +0400 Subject: [PATCH] Fix for firing distance calculation. 'original' var is not a starting point of projectile, but an atom it was fired at initially. 'starting' is turf where projectile was fired from. --- code/modules/projectiles/projectile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/projectiles/projectile.dm b/code/modules/projectiles/projectile.dm index cbeb12baaef..5bdecb79e34 100644 --- a/code/modules/projectiles/projectile.dm +++ b/code/modules/projectiles/projectile.dm @@ -74,7 +74,7 @@ loc = A.loc return 0// nope.avi - var/distance = get_dist(original,loc) + var/distance = get_dist(starting,loc) //Lower accurancy/longer range tradeoff. Distance matters a lot here, so at // close distance, actually RAISE the chance to hit. def_zone = get_zone_with_miss_chance(def_zone, M, -30 + 8*distance)