Fixes nulls (#33440)

This commit is contained in:
kevinz000
2017-12-11 09:30:13 -08:00
committed by CitadelStationBot
parent 2e46154344
commit d22aee94a1

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)