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.
This commit is contained in:
Chinsky
2013-02-16 19:00:49 +04:00
parent 764fa03a17
commit 106018ca3b

View File

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