Merge pull request #4327 from Citadel-Station-13/upstream-merge-33440

[MIRROR] Fixes projectile runtime due to click params but no target location (this happens when click catcher catches shoot clicks instead of normal firing.)
This commit is contained in:
deathride58
2017-12-11 18:20:38 +00:00
committed by GitHub
+3 -2
View File
@@ -359,8 +359,9 @@
forceMove(get_turf(source))
starting = get_turf(source)
original = target
yo = targloc.y - curloc.y
xo = targloc.x - curloc.x
if(targloc || !params)
yo = targloc.y - curloc.y
xo = targloc.x - curloc.x
if(isliving(source) && params)
var/list/calculated = calculate_projectile_angle_and_pixel_offsets(source, params)